public class AttributePollingMessageSource extends AbstractMessageSource<Object>
MessageSource
implementation that retrieves the current
value of a JMX attribute each time AbstractMessageSource.receive()
is invoked.Constructor and Description |
---|
AttributePollingMessageSource() |
Modifier and Type | Method and Description |
---|---|
protected Object |
doReceive()
Retrieves the JMX attribute value.
|
void |
setAttributeName(String attributeName)
Specify the name of the attribute to be retrieved.
|
void |
setObjectName(String objectName)
Specify the String value of the JMX MBean's
ObjectName . |
void |
setServer(MBeanServerConnection server)
Provide the MBeanServer where the JMX MBean has been registered.
|
receive, setHeaderExpressions
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
public void setServer(MBeanServerConnection server)
server
- The MBean server connection.public void setObjectName(String objectName)
ObjectName
.objectName
- The object name.public void setAttributeName(String attributeName)
attributeName
- The attribute name.protected Object doReceive()
doReceive
in class AbstractMessageSource<Object>