|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.byteman.rule.helper.Helper
org.jboss.byteman.sample.helper.JMXHelper
public class JMXHelper
A variant of PeriodicHelper which publishes its stats via JMX
| Field Summary | |
|---|---|
static long |
DEFAULT_PERIOD
the default period which the helper will wait for between calls to periodicUpdate in milliseconds. |
static java.lang.String |
DEFAULT_RMI_HOST
default value for the rmi server host address used by the JMX onnector server used only if an rmi server is required for the JMXConnector |
static int |
DEFAULT_RMI_PORT
default value for the rmi server port used by the JMX connector server used only if an rmi server is required for the JMXConnector |
static int |
DEFAULT_SAMPLE_SET_SIZE
default number of samples we are willing to store in order to maintain a running count of all previous |
static java.lang.String |
JMX_URL
JMX Url pattern for use when creating the connector server |
static java.lang.String |
SYSPROP_MBEAN_SERVER
This is a system property whose value will determine which MBean Server the MBeans should be registered in. |
| Fields inherited from class org.jboss.byteman.rule.helper.Helper |
|---|
rule |
| Constructor Summary | |
|---|---|
JMXHelper(Rule rule)
constructor allowing this helper to be used as a helper |
|
| Method Summary | |
|---|---|
static void |
activated()
helper activation method which creates a periodic helper thread to perform periodic calls to the trigger method. |
static void |
deactivated()
helper deactivation method which shuts down the periodic helper thread. |
java.lang.Object |
getAttribute(java.lang.String attribute)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes)
|
javax.management.MBeanInfo |
getMBeanInfo()
|
java.lang.Object |
getValue(int idx)
getter for counter values used by MBean code |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
|
void |
setAttribute(javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SYSPROP_MBEAN_SERVER
public static final long DEFAULT_PERIOD
public static final int DEFAULT_SAMPLE_SET_SIZE
public static final java.lang.String DEFAULT_RMI_HOST
public static final int DEFAULT_RMI_PORT
public static final java.lang.String JMX_URL
| Constructor Detail |
|---|
public JMXHelper(Rule rule)
rule - | Method Detail |
|---|
public static void activated()
public static void deactivated()
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
getAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionExceptionpublic javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes in interface javax.management.DynamicMBeanpublic javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
invoke in interface javax.management.DynamicMBeanjavax.management.MBeanException
javax.management.ReflectionExceptionpublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBeanpublic java.lang.Object getValue(int idx)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||