Spring Integration

org.springframework.integration.jmx
Class AttributePollingMessageSource

java.lang.Object
  extended by org.springframework.integration.util.AbstractExpressionEvaluator
      extended by org.springframework.integration.endpoint.AbstractMessageSource<java.lang.Object>
          extended by org.springframework.integration.jmx.AttributePollingMessageSource
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, MessageSource<java.lang.Object>

public class AttributePollingMessageSource
extends AbstractMessageSource<java.lang.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

Constructor Summary
AttributePollingMessageSource()
           
 
Method Summary
protected  java.lang.Object doReceive()
          Retrieves the JMX attribute value.
 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 org.springframework.integration.endpoint.AbstractMessageSource
receive, setHeaderExpressions
 
Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, setBeanFactory, setBeanResolver, setConversionService
 
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.


doReceive

protected java.lang.Object doReceive()
Retrieves the JMX attribute value.

Specified by:
doReceive in class AbstractMessageSource<java.lang.Object>

Spring Integration