public class AttributePollingMessageSource extends AbstractMessageSource<Object>
MessageSource implementation that retrieves the current
value of a JMX attribute each time AbstractMessageSource.receive() is invoked.logger| Constructor and Description |
|---|
AttributePollingMessageSource() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doReceive()
Retrieves the JMX attribute value.
|
String |
getComponentType() |
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.
|
getComponentName, receive, setBeanName, setHeaderExpressionsafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionServicepublic 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.public String getComponentType()
protected Object doReceive()
doReceive in class AbstractMessageSource<Object>