public class JMXConsumer extends org.apache.camel.impl.DefaultConsumer implements NotificationListener
| Constructor and Description |
|---|
JMXConsumer(JMXEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNotificationListener()
Adds a notification listener to the target bean.
|
protected void |
doStart()
Initializes the mbean server connection and starts listening for
Notification events from the object.
|
protected void |
doStop()
Removes the notification listeners and terminates the background connection polling process if it exists
|
protected org.apache.camel.component.jmx.JMXConsumer.ConnectionNotificationListener |
getConnectionNotificationListener()
Returns the connection notification listener; creates the default listener if one does not
already exist
|
protected NotificationXmlFormatter |
getFormatter() |
protected MBeanServerConnection |
getServerConnection() |
void |
handleNotification(Notification aNotification,
Object aHandback)
Processes the Notification received.
|
protected void |
removeNotificationListeners()
Removes the configured notification listener and the connection notification listener from the
connection
|
protected void |
scheduleDelayedStart()
Schedules execution of the doStart() operation to occur again after the reconnect delay
|
protected void |
scheduleReconnect()
Schedules an attempt to re-initialize a lost connection after the reconnect delay
|
protected void |
setServerConnection(MBeanServerConnection aServerConnection) |
createUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic JMXConsumer(JMXEndpoint endpoint, org.apache.camel.Processor processor)
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultConsumerExceptionprotected org.apache.camel.component.jmx.JMXConsumer.ConnectionNotificationListener getConnectionNotificationListener()
protected void scheduleDelayedStart()
throws Exception
Exceptionprotected void scheduleReconnect()
protected void addNotificationListener()
throws Exception
Exceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultConsumerExceptionprotected void removeNotificationListeners()
throws Exception
Exceptionprotected MBeanServerConnection getServerConnection()
protected void setServerConnection(MBeanServerConnection aServerConnection)
public void handleNotification(Notification aNotification, Object aHandback)
NotificationXmlFormatterhandleNotification in interface NotificationListenerNotificationListener.handleNotification(javax.management.Notification, java.lang.Object)protected NotificationXmlFormatter getFormatter()
Apache Camel