Class PreparedQueryCacheJMXInstrument
- java.lang.Object
-
- org.apache.openjpa.lib.instrumentation.AbstractInstrument
-
- org.apache.openjpa.instrumentation.AbstractPreparedQueryCacheInstrument
-
- org.apache.openjpa.instrumentation.jmx.PreparedQueryCacheJMXInstrument
-
- All Implemented Interfaces:
JMXInstrument
,PreparedQueryCacheJMXInstrumentMBean
,PreparedQueryCacheInstrument
,Instrument
public class PreparedQueryCacheJMXInstrument extends AbstractPreparedQueryCacheInstrument implements JMXInstrument, PreparedQueryCacheJMXInstrumentMBean
A JMX-specific instrument for the query cache
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.instrumentation.AbstractPreparedQueryCacheInstrument
NO_STATS
-
-
Constructor Summary
Constructors Constructor Description PreparedQueryCacheJMXInstrument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationLevel
getLevel()
String
getName()
ObjectName
getObjectName()
Returns the JMX object name for the instrumentvoid
initialize()
void
start()
void
stop()
-
Methods inherited from class org.apache.openjpa.instrumentation.AbstractPreparedQueryCacheInstrument
getConfigId, getContextRef, getExecutionCount, getExecutionCount, getHitCount, getHitCount, getTotalExecutionCount, getTotalExecutionCount, getTotalHitCount, getTotalHitCount, queries, reset, setConfigId, setContextRef, setPreparedQueryCache, 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.PreparedQueryCacheInstrument
getExecutionCount, getExecutionCount, getHitCount, getHitCount, getTotalExecutionCount, getTotalExecutionCount, getTotalHitCount, getTotalHitCount, queries, reset, sinceDate, startDate
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceInstrument
- Specified by:
getName
in classAbstractInstrument
-
getLevel
public InstrumentationLevel getLevel()
- Specified by:
getLevel
in interfaceInstrument
- Overrides:
getLevel
in classAbstractPreparedQueryCacheInstrument
-
initialize
public void initialize()
- Specified by:
initialize
in interfaceInstrument
- Specified by:
initialize
in classAbstractInstrument
-
getObjectName
public ObjectName getObjectName()
Description copied from interface:JMXInstrument
Returns the JMX object name for the instrument- Specified by:
getObjectName
in interfaceJMXInstrument
-
start
public void start()
- Specified by:
start
in interfaceInstrument
-
stop
public void stop()
- Specified by:
stop
in interfaceInstrument
-
-