@ManagedResource(description="Managed ZooKeeper Master Consumer")
public class MasterConsumer
extends org.apache.camel.support.DefaultConsumer
| Constructor and Description |
|---|
MasterConsumer(MasterEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doResume() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
doSuspend() |
boolean |
isConnected() |
boolean |
isMaster() |
String |
lastEvent() |
protected Runnable |
onDisconnected() |
protected Runnable |
onLockOwned() |
String |
slaves() |
String |
thisNode() |
createUoW, doInit, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, setExceptionHandler, setRoute, setRouteId, toStringbuild, doBuild, doFail, doLifecycleChange, doShutdown, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic MasterConsumer(MasterEndpoint endpoint, org.apache.camel.Processor processor)
@ManagedAttribute(description="Are we connected to ZooKeeper") public boolean isConnected()
@ManagedAttribute(description="Are we the master") public boolean isMaster()
@ManagedOperation(description="Information about all the slaves") public String slaves()
@ManagedOperation(description="Information about the last event in the cluster group") public String lastEvent()
@ManagedOperation(description="Information about this node") public String thisNode()
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultConsumerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultConsumerExceptionprotected void doResume()
throws Exception
doResume in class org.apache.camel.support.service.BaseServiceExceptionprotected void doSuspend()
throws Exception
doSuspend in class org.apache.camel.support.service.BaseServiceExceptionprotected Runnable onLockOwned()
protected Runnable onDisconnected()
Apache Camel