Class AttributePollingMessageSource

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, MessageSource<Object>, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement

public class AttributePollingMessageSource extends AbstractMessageSource<Object>
A MessageSource implementation that retrieves the current value of a JMX attribute each time AbstractMessageSource.receive() is invoked.
Since:
2.0
Author:
Mark Fisher, Gary Russell
  • Constructor Details

    • AttributePollingMessageSource

      public AttributePollingMessageSource()
  • Method Details

    • setServer

      public void setServer(MBeanServerConnection server)
      Provide the MBeanServer where the JMX MBean has been registered.
      Parameters:
      server - The MBean server connection.
    • setObjectName

      public void setObjectName(String objectName)
      Specify the String value of the JMX MBean's ObjectName.
      Parameters:
      objectName - The object name.
    • setAttributeName

      public void setAttributeName(String attributeName)
      Specify the name of the attribute to be retrieved.
      Parameters:
      attributeName - The attribute name.
    • getComponentType

      public String getComponentType()
    • doReceive

      protected Object doReceive()
      Retrieves the JMX attribute value.
      Specified by:
      doReceive in class AbstractMessageSource<Object>
      Returns:
      The value returned.