Class MBeanTreePollingMessageSource

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, MessageSource<Object>, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement

public class MBeanTreePollingMessageSource extends AbstractMessageSource<Object>
A MessageSource implementation that retrieves a snapshot of a filtered subset of the MBean tree.
Since:
3.0
Author:
Stuart Williams, Gary Russell
  • Constructor Details

    • MBeanTreePollingMessageSource

      public MBeanTreePollingMessageSource(MBeanObjectConverter converter)
      Parameters:
      converter - The converter.
  • Method Details

    • getComponentType

      public String getComponentType()
    • doReceive

      protected Object doReceive()
      Description copied from class: AbstractMessageSource
      Subclasses must implement this method. Typically the returned value will be the payload of type T, but the returned value may also be a Message instance whose payload is of type T; also can be AbstractIntegrationMessageBuilder which is used for additional headers population.
      Specified by:
      doReceive in class AbstractMessageSource<Object>
      Returns:
      The value returned.
    • setServer

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

      public void setQueryName(String queryName)
      Parameters:
      queryName - The query name.
    • setQueryNameReference

      public void setQueryNameReference(ObjectName queryName)
      Parameters:
      queryName - The query name.
    • setQueryExpression

      public void setQueryExpression(String queryExpression)
      Parameters:
      queryExpression - The query expression.
    • setQueryExpressionReference

      public void setQueryExpressionReference(QueryExp queryExpression)
      Parameters:
      queryExpression - The query expression.