public class AttributePollingMessageSource extends AbstractMessageSource<Object>
MessageSource implementation that retrieves the current
value of a JMX attribute each time AbstractMessageSource.receive() is invoked.EXPRESSION_PARSER, 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, getManagedName, getManagedType, getMessageCount, getMessageCountLong, isCountsEnabled, isLoggingEnabled, receive, reset, setBeanName, setCountsEnabled, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeafterPropertiesSet, 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>