Class AttributePollingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Object>
org.springframework.integration.jmx.inbound.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:
- 7.0
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntegrationManagement
IntegrationManagement.ManagementOverrides -
Field Summary
Fields inherited from class AbstractExpressionEvaluator
EXPRESSION_PARSER, loggerFields inherited from interface IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable ObjectRetrieves the JMX attribute value.protected voidonInit()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 AbstractMessageSource
buildMessage, destroy, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IntegrationManagement
getThisAs, isObserved, registerObservationRegistryMethods inherited from interface MessageSource
getIntegrationPatternTypeMethods inherited from interface NamedComponent
getBeanName
-
Constructor Details
-
AttributePollingMessageSource
public AttributePollingMessageSource()
-
-
Method Details
-
setServer
Provide the MBeanServer where the JMX MBean has been registered.- Parameters:
server- The MBean server connection.
-
setObjectName
Specify the String value of the JMX MBean'sObjectName.- Parameters:
objectName- The object name.
-
setAttributeName
Specify the name of the attribute to be retrieved.- Parameters:
attributeName- The attribute name.
-
getComponentType
-
onInit
protected void onInit()- Overrides:
onInitin classAbstractExpressionEvaluator
-
doReceive
Retrieves the JMX attribute value.- Specified by:
doReceivein classAbstractMessageSource<Object>- Returns:
- The value returned.
-