Class DataCacheJMXInstrument
java.lang.Object
org.apache.openjpa.lib.instrumentation.AbstractInstrument
org.apache.openjpa.instrumentation.AbstractDataCacheInstrument
org.apache.openjpa.instrumentation.jmx.DataCacheJMXInstrument
- All Implemented Interfaces:
DataCacheInstrument,DataCacheJMXInstrumentMBean,JMXInstrument,Instrument
public class DataCacheJMXInstrument
extends AbstractDataCacheInstrument
implements JMXInstrument, DataCacheJMXInstrumentMBean
A JMX-specific instrument for the data cache
-
Field Summary
Fields inherited from class org.apache.openjpa.instrumentation.AbstractDataCacheInstrument
NO_STATS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.openjpa.instrumentation.AbstractDataCacheInstrument
cache, clear, collectStatistics, getCacheName, getCacheStatistics, getConfigId, getContextRef, getHitCount, getHitCount, getReadCount, getReadCount, getStatisticsEnabled, getTotalHitCount, getTotalHitCount, getTotalReadCount, getTotalReadCount, getTotalWriteCount, getTotalWriteCount, getWriteCount, getWriteCount, listKnownTypes, reset, setConfigId, setContextRef, setDataCache, setDataCacheManager, sinceDate, startDateMethods inherited from class org.apache.openjpa.lib.instrumentation.AbstractInstrument
getContext, getOptions, getProvider, isStarted, restart, setContext, setOptions, setProvider, setStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.instrumentation.DataCacheInstrument
cache, clear, collectStatistics, getCacheName, getCacheStatistics, getHitCount, getHitCount, getReadCount, getReadCount, getStatisticsEnabled, getTotalHitCount, getTotalHitCount, getTotalReadCount, getTotalReadCount, getTotalWriteCount, getTotalWriteCount, getWriteCount, getWriteCount, listKnownTypes, reset, sinceDate, startDateMethods inherited from interface org.apache.openjpa.lib.instrumentation.Instrument
getContext, getOptions, getProvider, isStarted, restart, setContext, setOptions, setProvider, setStartedMethods inherited from interface org.apache.openjpa.instrumentation.jmx.JMXInstrument
getConfigId, getContextRef, setConfigId, setContextRef
-
Constructor Details
-
DataCacheJMXInstrument
public DataCacheJMXInstrument()
-
-
Method Details
-
getName
Description copied from interface:InstrumentReturns the name of the instrument. Must be unique per-provider.- Specified by:
getNamein interfaceInstrument- Specified by:
getNamein classAbstractInstrument
-
getLevel
Description copied from interface:InstrumentGets the instrumentation level of this instrument. The instrumentation level determines if and when the instrument will automatically start and stop.- Specified by:
getLevelin interfaceInstrument- Overrides:
getLevelin classAbstractDataCacheInstrument- Returns:
- the instrumentation level of the instrument
-
initialize
public void initialize()Description copied from interface:InstrumentInitializes the instrument. Depending on the instrument, the provider, options, and various options may need to be set before calling this method.- Specified by:
initializein interfaceInstrument- Specified by:
initializein classAbstractInstrument
-
getObjectName
Description copied from interface:JMXInstrumentReturns the JMX object name for the instrument- Specified by:
getObjectNamein interfaceJMXInstrument
-
start
public void start()Description copied from interface:InstrumentStarts the instrument. Typically this will be performed through the provider, but in some cases an instrument will have its own specialized startup.- Specified by:
startin interfaceInstrument
-
stop
public void stop()Description copied from interface:InstrumentStarts the instrument. Typically this will be performed through the provider, but in some cases an instrument will have its own specialized shutdown.- Specified by:
stopin interfaceInstrument
-