Class QueryCacheJMXInstrument
- java.lang.Object
-
- org.apache.openjpa.lib.instrumentation.AbstractInstrument
-
- org.apache.openjpa.instrumentation.AbstractQueryCacheInstrument
-
- org.apache.openjpa.instrumentation.jmx.QueryCacheJMXInstrument
-
- All Implemented Interfaces:
JMXInstrument,QueryCacheJMXInstrumentMBean,QueryCacheInstrument,Instrument
public class QueryCacheJMXInstrument extends AbstractQueryCacheInstrument implements JMXInstrument, QueryCacheJMXInstrumentMBean
A JMX-specific instrument for the query cache
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.instrumentation.AbstractQueryCacheInstrument
NO_STATS
-
-
Constructor Summary
Constructors Constructor Description QueryCacheJMXInstrument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationLevelgetLevel()StringgetName()ObjectNamegetObjectName()Returns the JMX object name for the instrumentvoidinitialize()voidstart()voidstop()-
Methods inherited from class org.apache.openjpa.instrumentation.AbstractQueryCacheInstrument
count, getConfigId, getContextRef, getEvictionCount, getExecutionCount, getExecutionCount, getHitCount, getHitCount, getTotalEvictionCount, getTotalExecutionCount, getTotalExecutionCount, getTotalHitCount, getTotalHitCount, queryKeys, reset, setConfigId, setContextRef, setPreparedQueryCache, setQueryCache, sinceDate, startDate
-
Methods inherited from class org.apache.openjpa.lib.instrumentation.AbstractInstrument
getContext, getOptions, getProvider, isStarted, restart, setContext, setOptions, setProvider, setStarted
-
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.lib.instrumentation.Instrument
getContext, getOptions, getProvider, isStarted, restart, setContext, setOptions, setProvider, setStarted
-
Methods inherited from interface org.apache.openjpa.instrumentation.jmx.JMXInstrument
getConfigId, getContextRef, setConfigId, setContextRef
-
Methods inherited from interface org.apache.openjpa.instrumentation.QueryCacheInstrument
count, getEvictionCount, getExecutionCount, getExecutionCount, getHitCount, getHitCount, getTotalEvictionCount, getTotalExecutionCount, getTotalExecutionCount, getTotalHitCount, getTotalHitCount, queryKeys, reset, sinceDate, startDate
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceInstrument- Specified by:
getNamein classAbstractInstrument
-
getLevel
public InstrumentationLevel getLevel()
- Specified by:
getLevelin interfaceInstrument- Overrides:
getLevelin classAbstractQueryCacheInstrument
-
initialize
public void initialize()
- Specified by:
initializein interfaceInstrument- Specified by:
initializein classAbstractInstrument
-
getObjectName
public ObjectName getObjectName()
Description copied from interface:JMXInstrumentReturns the JMX object name for the instrument- Specified by:
getObjectNamein interfaceJMXInstrument
-
start
public void start()
- Specified by:
startin interfaceInstrument
-
stop
public void stop()
- Specified by:
stopin interfaceInstrument
-
-