public class GbjJmxCacheStats
extends java.lang.Object
implements javax.management.DynamicMBean
Modifier and Type | Field and Description |
---|---|
GbjJmxCacheStatsMonitor |
monitor
The GbjJmxCacheStatsMonitor process updating these cache stats
|
GbjSession |
session
The GS session to be used for executing control commands
|
GbjCacheStats |
stats
The cache stats wrappered by this instance
|
Constructor and Description |
---|
GbjJmxCacheStats()
Base constructor needed for JMX protocol
|
GbjJmxCacheStats(GbjCacheStats s,
GbjSession ses)
Create a new GbjJmxCacheStats object on a particular set of
GbjCacheStats from a given GS session
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
enableHypericTrace()
JMX operation to enable tracing of these process-level cache stats
from Hyperic
|
java.lang.Object |
getAttribute(java.lang.String attribute)
Support for JMX DynamicMBean interface
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes)
Support for JMX DynamicMBean interface
|
javax.management.MBeanInfo |
getMBeanInfo()
Support for JMX DynamicMBean interface
|
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
Support for JMX DynamicMBean interface
|
java.lang.String |
kill()
JMX operation to kill the process
associated with this GbjJmxCacheStat using kill -9
|
void |
setAttribute(javax.management.Attribute attribute)
Support for JMX DynamicMBean interface
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
Support for JMX DynamicMBean interface
|
java.lang.String |
stop()
JMX operation to stop the session
associated with this GbjJmxCacheStat
|
public GbjCacheStats stats
public GbjSession session
public GbjJmxCacheStatsMonitor monitor
public GbjJmxCacheStats()
public GbjJmxCacheStats(GbjCacheStats s, GbjSession ses)
s
- GbjCacheStats statsses
- GbjSessionpublic java.lang.String stop()
public java.lang.String kill()
public java.lang.String enableHypericTrace()
public java.lang.Object getAttribute(java.lang.String attribute) throws javax.management.AttributeNotFoundException
getAttribute
in interface javax.management.DynamicMBean
attribute
- String name of attribute to fetchjavax.management.AttributeNotFoundException
- thrown if cant find attributepublic javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes
in interface javax.management.DynamicMBean
attributes
- array of Strings containing names of attributespublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature) throws java.lang.UnsupportedOperationException, javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
actionName
- name of actionparams
- array of Object parameterssignature
- array of Strings containing signaturesjava.lang.UnsupportedOperationException
- ReflectionException
thrown on errorsjavax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException
setAttribute
in interface javax.management.DynamicMBean
attribute
- Attributejavax.management.AttributeNotFoundException
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes
in interface javax.management.DynamicMBean
attributes
- list of attributes