Class AttributePollingMessageSource

java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Object>
org.springframework.integration.jmx.AttributePollingMessageSource
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.integration.core.MessageSource<Object>, org.springframework.integration.IntegrationPattern, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.support.management.IntegrationInboundManagement, org.springframework.integration.support.management.IntegrationManagement

public class AttributePollingMessageSource extends org.springframework.integration.endpoint.AbstractMessageSource<Object>
A MessageSource implementation that retrieves the current value of a JMX attribute each time AbstractMessageSource.receive() is invoked.
Since:
2.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement

    org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides
  • Field Summary

    Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator

    EXPRESSION_PARSER, logger

    Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement

    METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    Retrieves the JMX attribute value.
     
    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
    Provide the MBeanServer where the JMX MBean has been registered.

    Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSource

    buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType

    Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator

    afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement

    getThisAs, isObserved, registerObservationRegistry

    Methods inherited from interface org.springframework.integration.core.MessageSource

    getIntegrationPatternType
  • Constructor Details

    • AttributePollingMessageSource

      public AttributePollingMessageSource()
  • Method Details

    • setServer

      public void setServer(MBeanServerConnection server)
      Provide the MBeanServer where the JMX MBean has been registered.
      Parameters:
      server - The MBean server connection.
    • setObjectName

      public void setObjectName(String objectName)
      Specify the String value of the JMX MBean's ObjectName.
      Parameters:
      objectName - The object name.
    • setAttributeName

      public void setAttributeName(String attributeName)
      Specify the name of the attribute to be retrieved.
      Parameters:
      attributeName - The attribute name.
    • getComponentType

      public String getComponentType()
    • doReceive

      protected Object doReceive()
      Retrieves the JMX attribute value.
      Specified by:
      doReceive in class org.springframework.integration.endpoint.AbstractMessageSource<Object>