|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.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 |
| Constructor Summary | |
|---|---|
JMXConsumer(JMXEndpoint aEndpoint,
org.apache.camel.Processor aProcessor)
|
|
| Method Summary | |
|---|---|
protected void |
doStart()
Initializes the mbean server connection and starts listening for Notification events from the object. |
protected void |
doStop()
Removes the notification listener |
protected MBeanServerConnection |
getServerConnection()
|
void |
handleNotification(Notification aNotification,
Object aHandback)
Processes the Notification received. |
protected void |
setServerConnection(MBeanServerConnection aServerConnection)
|
| Methods inherited from class org.apache.camel.impl.DefaultConsumer |
|---|
getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, 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 aEndpoint,
org.apache.camel.Processor aProcessor)
| Method Detail |
|---|
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultConsumerException
protected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultConsumerExceptionprotected MBeanServerConnection getServerConnection()
protected void setServerConnection(MBeanServerConnection aServerConnection)
public void handleNotification(Notification aNotification,
Object aHandback)
NotificationXmlFormatter
handleNotification in interface NotificationListenerNotificationListener.handleNotification(javax.management.Notification, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||