net.esper.indicator.jmx
Class JMXLastElementDynamicMBean

java.lang.Object
  extended by net.esper.indicator.jmx.JMXLastElementDynamicMBean
All Implemented Interfaces:
javax.management.DynamicMBean, JMXLastElementObserver

public final class JMXLastElementDynamicMBean
extends java.lang.Object
implements JMXLastElementObserver

JMX DynamicMBean that exposes all properties of an element as attributes for querying.


Constructor Summary
JMXLastElementDynamicMBean(EventType eventType)
          Constructor.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute)
           
 javax.management.AttributeList getAttributes(java.lang.String[] attributes)
           
 javax.management.MBeanInfo getMBeanInfo()
           
 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)
           
 void setLastValue(EventBean lastValue)
          Update JMX last element view with a new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXLastElementDynamicMBean

public JMXLastElementDynamicMBean(EventType eventType)
Constructor.

Parameters:
eventType - is the schema describing the elements to expect.
Method Detail

getMBeanInfo

public final javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.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 java.lang.Object getAttribute(java.lang.String attribute)
                                    throws javax.management.AttributeNotFoundException,
                                           javax.management.MBeanException,
                                           javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

setAttribute

public final void setAttribute(javax.management.Attribute attribute)
                        throws javax.management.AttributeNotFoundException,
                               javax.management.InvalidAttributeValueException,
                               javax.management.MBeanException,
                               javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

getAttributes

public final javax.management.AttributeList getAttributes(java.lang.String[] attributes)
Specified by:
getAttributes in interface javax.management.DynamicMBean

setAttributes

public final javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Specified by:
setAttributes in interface javax.management.DynamicMBean

invoke

public final java.lang.Object invoke(java.lang.String actionName,
                                     java.lang.Object[] params,
                                     java.lang.String[] signature)
                              throws javax.management.MBeanException,
                                     javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException