public class AttributePollingMessageSource extends AbstractMessageSource<java.lang.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 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.MBeanServerConnection server)
Provide the MBeanServer where the JMX MBean has been registered.
|
receive, setHeaderExpressions
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, setBeanFactory, setConversionService
public void setServer(javax.management.MBeanServerConnection server)
public void setObjectName(java.lang.String objectName)
ObjectName
.public void setAttributeName(java.lang.String attributeName)
protected java.lang.Object doReceive()
doReceive
in class AbstractMessageSource<java.lang.Object>