Class ZookeeperGroupListenerSupport<T extends NodeState>
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.zookeepermaster.ZookeeperGroupSupport<T>
org.apache.camel.component.zookeepermaster.ZookeeperGroupListenerSupport<T>
- All Implemented Interfaces:
AutoCloseable,Callable<org.apache.curator.framework.CuratorFramework>,org.apache.camel.CamelContextAware,GroupListener<T>,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.StatefulService,org.apache.camel.SuspendableService,org.apache.curator.framework.state.ConnectionStateListener
public class ZookeeperGroupListenerSupport<T extends NodeState>
extends ZookeeperGroupSupport<T>
implements GroupListener<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.component.zookeepermaster.group.GroupListener
GroupListener.GroupEvent -
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionZookeeperGroupListenerSupport(String clusterPath, org.apache.camel.Endpoint endpoint, Runnable onLockAcquired, Runnable onDisconnected) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop()getGroup()voidgroupEvent(Group<T> group, GroupListener.GroupEvent event) protected voidprotected voidvoidupdateState(T 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, stateChangedMethods 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, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.curator.framework.state.ConnectionStateListener
doNotProxyMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
ZookeeperGroupListenerSupport
-
-
Method Details
-
updateState
-
doStart
- Overrides:
doStartin classZookeeperGroupSupport<T extends NodeState>- Throws:
Exception
-
doStop
- Overrides:
doStopin classZookeeperGroupSupport<T extends NodeState>- Throws:
Exception
-
getClusterPath
-
getGroup
-
groupEvent
- Specified by:
groupEventin interfaceGroupListener<T extends NodeState>
-
onDisconnected
protected void onDisconnected() -
onLockOwned
protected void onLockOwned()
-