Class MBeanTreePollingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Object>
org.springframework.integration.jmx.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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement
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 MBeanTreePollingMessageSource(MBeanObjectConverter converter)
-
Method Summary
Modifier and Type Method Description protected Object
doReceive()
Provides the mapped tree objectString
getComponentType()
void
setQueryExpression(String queryExpression)
void
setQueryExpressionReference(QueryExp queryExpression)
void
setQueryName(String queryName)
void
setQueryNameReference(ObjectName queryName)
void
setServer(MBeanServerConnection server)
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
Methods inherited from interface org.springframework.integration.core.MessageSource
getIntegrationPatternType
-
Constructor Details
-
MBeanTreePollingMessageSource
- Parameters:
converter
- The converter.
-
-
Method Details
-
getComponentType
-
doReceive
Provides the mapped tree object- Specified by:
doReceive
in classAbstractMessageSource<Object>
- Returns:
- The value returned.
-
setServer
Provide the MBeanServer where the JMX MBean has been registered.- Parameters:
server
- The MBean server connection.
-
setQueryName
- Parameters:
queryName
- The query name.
-
setQueryNameReference
- Parameters:
queryName
- The query name.
-
setQueryExpression
- Parameters:
queryExpression
- The query expression.
-
setQueryExpressionReference
- Parameters:
queryExpression
- The query expression.
-