Class ZookeeperGroupListenerSupport
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.component.zookeepermaster.ZookeeperGroupSupport
-
- org.apache.camel.component.zookeepermaster.ZookeeperGroupListenerSupport
-
- All Implemented Interfaces:
AutoCloseable,Callable<org.apache.curator.framework.CuratorFramework>,org.apache.camel.CamelContextAware,GroupListener,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService,org.apache.curator.framework.state.ConnectionStateListener
public class ZookeeperGroupListenerSupport extends ZookeeperGroupSupport implements GroupListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.camel.component.zookeepermaster.group.GroupListener
GroupListener.GroupEvent
-
-
Constructor Summary
Constructors Constructor Description ZookeeperGroupListenerSupport(String clusterPath, org.apache.camel.Endpoint endpoint, Runnable onLockAcquired, Runnable onDisconnected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop()StringgetClusterPath()Group<CamelNodeState>getGroup()voidgroupEvent(Group group, GroupListener.GroupEvent event)protected voidonDisconnected()protected voidonLockOwned()voidupdateState(CamelNodeState state)-
Methods inherited from class org.apache.camel.component.zookeepermaster.ZookeeperGroupSupport
call, createGroup, getCamelContext, getCurator, getManagedGroupFactory, getManagedGroupFactoryStrategy, getMaximumConnectionTimeout, getZooKeeperPassword, getZooKeeperUrl, registerAsListener, setCamelContext, setCurator, setManagedGroupFactory, setManagedGroupFactoryStrategy, setMaximumConnectionTimeout, setZooKeeperPassword, setZooKeeperUrl, stateChanged
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.curator.framework.state.ConnectionStateListener
doNotProxy
-
-
-
-
Method Detail
-
updateState
public void updateState(CamelNodeState state)
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classZookeeperGroupSupport- Throws:
Exception
-
doStop
protected void doStop() throws Exception- Overrides:
doStopin classZookeeperGroupSupport- Throws:
Exception
-
getClusterPath
public String getClusterPath()
-
getGroup
public Group<CamelNodeState> getGroup()
-
groupEvent
public void groupEvent(Group group, GroupListener.GroupEvent event)
- Specified by:
groupEventin interfaceGroupListener
-
onDisconnected
protected void onDisconnected()
-
onLockOwned
protected void onLockOwned()
-
-