public class AttributePollingMessageSource extends AbstractMessageSource<Object>
MessageSource
implementation that
retrieves the current value of a JMX attribute each time AbstractMessageSource.receive()
is invoked.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
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.
|
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntegrationPatternType
getThisAs
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.public String getComponentType()
protected Object doReceive()
doReceive
in class AbstractMessageSource<Object>