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
-
Method Summary
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
-
Constructor Details
-
QueryCacheJMXInstrument
public QueryCacheJMXInstrument()
-
-
Method Details
-
getName
Description copied from interface:Instrument
Returns the name of the instrument. Must be unique per-provider.- Specified by:
getName
in interfaceInstrument
- Specified by:
getName
in classAbstractInstrument
-
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:
getLevel
in interfaceInstrument
- Overrides:
getLevel
in classAbstractQueryCacheInstrument
- 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:
initialize
in interfaceInstrument
- Specified by:
initialize
in classAbstractInstrument
-
getObjectName
Description copied from interface:JMXInstrument
Returns the JMX object name for the instrument- Specified by:
getObjectName
in interfaceJMXInstrument
-
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:
start
in interfaceInstrument
-
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:
stop
in interfaceInstrument
-