public class AttributePollingMessageSource
extends org.springframework.integration.endpoint.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.
|
java.lang.String |
getComponentType() |
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.
|
getComponentName, receive, setBeanName, setHeaderExpressions
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
public void setServer(javax.management.MBeanServerConnection server)
server
- The MBean server connection.public void setObjectName(java.lang.String objectName)
ObjectName
.objectName
- The object name.public void setAttributeName(java.lang.String attributeName)
attributeName
- The attribute name.public java.lang.String getComponentType()
protected java.lang.Object doReceive()
doReceive
in class org.springframework.integration.endpoint.AbstractMessageSource<java.lang.Object>