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 void
doStart()
protected void
doStop()
getGroup()
void
groupEvent
(Group<T> group, GroupListener.GroupEvent event) protected void
protected void
void
updateState
(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, 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
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
ZookeeperGroupListenerSupport
-
-
Method Details
-
updateState
-
doStart
- Overrides:
doStart
in classZookeeperGroupSupport<T extends NodeState>
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classZookeeperGroupSupport<T extends NodeState>
- Throws:
Exception
-
getClusterPath
-
getGroup
-
groupEvent
- Specified by:
groupEvent
in interfaceGroupListener<T extends NodeState>
-
onDisconnected
protected void onDisconnected() -
onLockOwned
protected void onLockOwned()
-