|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.endpoint.AbstractEndpoint org.springframework.integration.endpoint.MessageProducerSupport org.springframework.integration.jmx.NotificationListeningMessageProducer
public class NotificationListeningMessageProducer
A JMX NotificationListener
implementation that will send Messages
containing the JMX Notification
instances as their payloads.
Constructor Summary | |
---|---|
NotificationListeningMessageProducer()
|
Method Summary | |
---|---|
protected void |
doStart()
Registers the notification listener with the specified ObjectNames. |
protected void |
doStop()
Unregisters the notification listener. |
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information. |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
Notification handling method implementation. |
void |
setFilter(javax.management.NotificationFilter filter)
Specify a NotificationFilter to be passed to the server
when registering this listener. |
void |
setHandback(java.lang.Object handback)
Specify a handback object to provide context to the listener upon notification. |
void |
setObjectName(javax.management.ObjectName objectName)
Specify the JMX ObjectName of the notification publisher to which this notification listener should be subscribed. |
void |
setServer(javax.management.MBeanServer server)
Provide a reference to the MBeanServer where the notification publishing MBeans are registered. |
Methods inherited from class org.springframework.integration.endpoint.MessageProducerSupport |
---|
onInit, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack |
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint |
---|
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.integration.context.NamedComponent |
---|
getComponentName |
Constructor Detail |
---|
public NotificationListeningMessageProducer()
Method Detail |
---|
public void setServer(javax.management.MBeanServer server)
public void setObjectName(javax.management.ObjectName objectName)
public void setFilter(javax.management.NotificationFilter filter)
NotificationFilter
to be passed to the server
when registering this listener. The filter may be null.
public void setHandback(java.lang.Object handback)
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
Notification
as its payload, and if the handback object is
not null, it sets that as a Message header value. The Message is then
sent to this producer's output channel.
handleNotification
in interface javax.management.NotificationListener
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
protected void doStart()
doStart
in class MessageProducerSupport
protected void doStop()
doStop
in class MessageProducerSupport
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |