org.springframework.integration.jmx
Class AttributePollingMessageSource

java.lang.Object
  extended by org.springframework.integration.jmx.AttributePollingMessageSource
All Implemented Interfaces:
MessageSource

public class AttributePollingMessageSource
extends java.lang.Object
implements MessageSource

A MessageSource implementation that retrieves the current value of a JMX attribute each time receive() is invoked.

Since:
2.0

Constructor Summary
AttributePollingMessageSource()
           
 
Method Summary
 Message<?> receive()
          Retrieves the attribute value and returns it in the payload of a Message.
 void setAttributeName(java.lang.String attributeName)
          Specify the name of the attribute to be retrieved.
 void setObjectName(java.lang.String objectName)
          Specify the String value of the JMX MBean's ObjectName.
 void setServer(javax.management.MBeanServer server)
          Provide the MBeanServer where the JMX MBean has been registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributePollingMessageSource

public AttributePollingMessageSource()
Method Detail

setServer

public void setServer(javax.management.MBeanServer server)
Provide the MBeanServer where the JMX MBean has been registered.


setObjectName

public void setObjectName(java.lang.String objectName)
Specify the String value of the JMX MBean's ObjectName.


setAttributeName

public void setAttributeName(java.lang.String attributeName)
Specify the name of the attribute to be retrieved.


receive

public Message<?> receive()
Retrieves the attribute value and returns it in the payload of a Message.

Specified by:
receive in interface MessageSource