|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ServiceSupport org.apache.camel.impl.DefaultConsumer org.apache.camel.component.jmx.JMXConsumer
public class JMXConsumer
Consumer will add itself as a NotificationListener on the object specified by the objectName param.
Field Summary |
---|
Fields inherited from class org.apache.camel.impl.DefaultConsumer |
---|
log |
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
JMXConsumer(JMXEndpoint endpoint,
org.apache.camel.Processor processor)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.camel.impl.DefaultConsumer |
---|
createUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
---|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Constructor Detail |
---|
public JMXConsumer(JMXEndpoint endpoint, org.apache.camel.Processor processor)
Method Detail |
---|
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultConsumer
Exception
protected org.apache.camel.component.jmx.JMXConsumer.ConnectionNotificationListener getConnectionNotificationListener()
protected void scheduleDelayedStart() throws Exception
Exception
protected void scheduleReconnect()
protected void addNotificationListener() throws Exception
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultConsumer
Exception
protected void removeNotificationListeners() throws Exception
Exception
protected MBeanServerConnection getServerConnection()
protected void setServerConnection(MBeanServerConnection aServerConnection)
public void handleNotification(Notification aNotification, Object aHandback)
NotificationXmlFormatter
handleNotification
in interface NotificationListener
NotificationListener.handleNotification(javax.management.Notification, java.lang.Object)
protected NotificationXmlFormatter getFormatter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |