org.apache.openjpa.instrumentation.jmx
Class DataCacheJMXInstrument
java.lang.Object
   org.apache.openjpa.lib.instrumentation.AbstractInstrument
org.apache.openjpa.lib.instrumentation.AbstractInstrument
       org.apache.openjpa.instrumentation.AbstractDataCacheInstrument
org.apache.openjpa.instrumentation.AbstractDataCacheInstrument
           org.apache.openjpa.instrumentation.jmx.DataCacheJMXInstrument
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
 
 
 
 
| 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, startDate | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
| Methods 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, startDate | 
 
DataCacheJMXInstrument
public DataCacheJMXInstrument()
getName
public String getName()
- Description copied from interface: Instrument
- Returns the name of the instrument.  Must be unique per-provider.
 
- 
- Specified by:
- getNamein interface- Instrument
- Specified by:
- getNamein class- AbstractInstrument
 
- 
 
getLevel
public InstrumentationLevel getLevel()
- Description copied from interface: Instrument
- Gets the instrumentation level of this instrument.  The instrumentation level
 determines if and when the instrument will automatically start and stop.
 
- 
- Specified by:
- getLevelin interface- Instrument
- Overrides:
- getLevelin class- AbstractDataCacheInstrument
 
- 
- Returns:
- the instrumentation level of the instrument
 
initialize
public void initialize()
- Description copied from interface: Instrument
- Initializes the instrument.  Depending on the instrument, the provider,
 options, and various options may need to be set before calling this method.
 
- 
- Specified by:
- initializein interface- Instrument
- Specified by:
- initializein class- AbstractInstrument
 
- 
 
getObjectName
public ObjectName getObjectName()
- Description copied from interface: JMXInstrument
- Returns the JMX object name for the instrument
 
- 
- Specified by:
- getObjectNamein interface- JMXInstrument
 
- 
- Returns:
 
start
public void start()
- Description copied from interface: Instrument
- Starts 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 interface- Instrument
 
- 
 
stop
public void stop()
- Description copied from interface: Instrument
- Starts 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 interface- Instrument
 
- 
 
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.