public class GbjJmxCacheStats extends Object implements 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 |
---|---|
String |
enableHypericTrace()
JMX operation to enable tracing of these process-level cache stats
from Hyperic
|
Object |
getAttribute(String attribute)
Support for JMX DynamicMBean interface
|
AttributeList |
getAttributes(String[] attributes)
Support for JMX DynamicMBean interface
|
MBeanInfo |
getMBeanInfo()
Support for JMX DynamicMBean interface
|
Object |
invoke(String actionName,
Object[] params,
String[] signature)
Support for JMX DynamicMBean interface
|
String |
kill()
JMX operation to kill the process
associated with this GbjJmxCacheStat using kill -9
|
void |
setAttribute(Attribute attribute)
Support for JMX DynamicMBean interface
|
AttributeList |
setAttributes(AttributeList attributes)
Support for JMX DynamicMBean interface
|
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 String stop()
public String kill()
public String enableHypericTrace()
public Object getAttribute(String attribute) throws AttributeNotFoundException
getAttribute
in interface DynamicMBean
attribute
- String name of attribute to fetchAttributeNotFoundException
- thrown if cant find attributepublic AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
attributes
- array of Strings containing names of attributespublic MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public Object invoke(String actionName, Object[] params, String[] signature) throws UnsupportedOperationException, ReflectionException
invoke
in interface DynamicMBean
actionName
- name of actionparams
- array of Object parameterssignature
- array of Strings containing signaturesUnsupportedOperationException
- ReflectionException
thrown on errorsReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException
setAttribute
in interface DynamicMBean
attribute
- AttributeAttributeNotFoundException
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
attributes
- list of attributes