com.espertech.esper.indicator.jmx
Class JMXLastElementDynamicMBean

java.lang.Object
  extended by com.espertech.esper.indicator.jmx.JMXLastElementDynamicMBean
All Implemented Interfaces:
JMXLastElementObserver, DynamicMBean

public final class JMXLastElementDynamicMBean
extends Object
implements JMXLastElementObserver

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


Constructor Summary
JMXLastElementDynamicMBean(EventType eventType)
          Constructor.
 
Method Summary
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(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 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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com