Interface JMXInstrument
- All Superinterfaces:
Instrument
- All Known Implementing Classes:
DataCacheJMXInstrument
,PreparedQueryCacheJMXInstrument
,QueryCacheJMXInstrument
Interface for JMX-specific instruments
-
Method Summary
Modifier and TypeMethodDescriptionSets the config id for the instrument.Gets the context reference for the instrument.Returns the JMX object name for the instrumentvoid
setConfigId
(String cid) Gets the config id for the instrument.void
setContextRef
(String cref) Sets the context reference for the instrument.Methods inherited from interface org.apache.openjpa.lib.instrumentation.Instrument
getContext, getLevel, getName, getOptions, getProvider, initialize, isStarted, restart, setContext, setOptions, setProvider, setStarted, start, stop
-
Method Details
-
getObjectName
ObjectName getObjectName()Returns the JMX object name for the instrument -
setContextRef
Sets the context reference for the instrument. Required to register the instrument under a unique id.- Parameters:
cref
- the context reference for the instrument
-
getContextRef
String getContextRef()Gets the context reference for the instrument. Required to register the instrument under a unique id.- Parameters:
cref
- the context reference for the instrument
-
getConfigId
String getConfigId()Sets the config id for the instrument. Required to register the instrument under a unique id.- Returns:
- the config id of the instrument
-
setConfigId
Gets the config id for the instrument. Required to register the instrument under a unique id.- Parameters:
cid
- the config id of the instrument
-