net.esper.indicator.jmx
Class JMXLastElementDynamicMBean
java.lang.Object
net.esper.indicator.jmx.JMXLastElementDynamicMBean
- All Implemented Interfaces:
- DynamicMBean, JMXLastElementObserver
public final class JMXLastElementDynamicMBean
- extends Object
- implements JMXLastElementObserver
JMX DynamicMBean that exposes all properties of an element as attributes for querying.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXLastElementDynamicMBean
public JMXLastElementDynamicMBean(EventType eventType)
- Constructor.
- Parameters:
eventType
- is the schema describing the elements to expect.
getMBeanInfo
public final MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface DynamicMBean
setLastValue
public final void setLastValue(EventBean lastValue)
- Description copied from interface:
JMXLastElementObserver
- Update JMX last element view with a new value.
- Specified by:
setLastValue
in interface JMXLastElementObserver
- Parameters:
lastValue
- is the new last value
getAttribute
public final Object getAttribute(String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
setAttribute
public final void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
getAttributes
public final AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributes
in interface DynamicMBean
setAttributes
public final AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes
in interface DynamicMBean
invoke
public final Object invoke(String actionName,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
- Specified by:
invoke
in interface DynamicMBean
- Throws:
MBeanException
ReflectionException