Class AttributePollingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Object>
org.springframework.integration.jmx.AttributePollingMessageSource
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- MessageSource<Object>,- IntegrationPattern,- NamedComponent,- IntegrationInboundManagement,- IntegrationManagement
A 
MessageSource implementation that
 retrieves the current value of a JMX attribute each time AbstractMessageSource.receive() is invoked.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagementIntegrationManagement.ManagementOverrides
- 
Field SummaryFields inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagementMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectRetrieves the JMX attribute value.voidsetAttributeName(String attributeName) Specify the name of the attribute to be retrieved.voidsetObjectName(String objectName) Specify the String value of the JMX MBean'sObjectName.voidsetServer(MBeanServerConnection server) Provide the MBeanServer where the JMX MBean has been registered.Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSourcebuildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionServiceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementgetThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSourcegetIntegrationPatternType
- 
Constructor Details- 
AttributePollingMessageSourcepublic AttributePollingMessageSource()
 
- 
- 
Method Details- 
setServerProvide the MBeanServer where the JMX MBean has been registered.- Parameters:
- server- The MBean server connection.
 
- 
setObjectNameSpecify the String value of the JMX MBean'sObjectName.- Parameters:
- objectName- The object name.
 
- 
setAttributeNameSpecify the name of the attribute to be retrieved.- Parameters:
- attributeName- The attribute name.
 
- 
getComponentType
- 
doReceiveRetrieves the JMX attribute value.- Specified by:
- doReceivein class- AbstractMessageSource<Object>
- Returns:
- The value returned.
 
 
-