@ManagedResource(description="Managed ZooKeeper Master Consumer")
public class MasterConsumer
extends org.apache.camel.impl.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, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString
doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public 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.impl.DefaultConsumer
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultConsumer
Exception
protected void doResume() throws Exception
doResume
in class org.apache.camel.support.ServiceSupport
Exception
protected void doSuspend() throws Exception
doSuspend
in class org.apache.camel.support.ServiceSupport
Exception
protected Runnable onLockOwned()
protected Runnable onDisconnected()
Apache Camel