Class ZooKeeperClusterService
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>
org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterService
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.cluster.CamelClusterService
,org.apache.camel.Ordered
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class ZooKeeperClusterService
extends org.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.cluster.CamelClusterService
org.apache.camel.cluster.CamelClusterService.Selector
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
Fields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView
createView
(String namespace) protected void
doStart()
protected void
doStop()
List<org.apache.curator.framework.AuthInfo>
long
org.apache.curator.framework.CuratorFramework
long
getNodes()
long
int
org.apache.curator.RetryPolicy
long
void
setAuthInfoList
(List<org.apache.curator.framework.AuthInfo> authInfoList) void
setBasePath
(String basePath) void
setConfiguration
(ZooKeeperCuratorConfiguration configuration) void
setConnectionTimeout
(long connectionTimeout) void
setConnectionTimeout
(long connectionTimeout, TimeUnit connectionTimeotUnit) void
setConnectionTimeoutUnit
(TimeUnit connectionTimeotUnit) void
setCuratorFramework
(org.apache.curator.framework.CuratorFramework curatorFramework) void
setMaxCloseWait
(long maxCloseWait) void
setMaxCloseWaitUnit
(TimeUnit maxCloseWaitUnit) void
setNamespace
(String namespace) void
void
void
setReconnectBaseSleepTime
(long reconnectBaseSleepTime) void
setReconnectBaseSleepTime
(long reconnectBaseSleepTime, TimeUnit reconnectBaseSleepTimeUnit) void
setReconnectBaseSleepTimeUnit
(TimeUnit reconnectBaseSleepTimeUnit) void
setReconnectMaxRetries
(int reconnectMaxRetries) void
setRetryPolicy
(org.apache.curator.RetryPolicy retryPolicy) void
setSessionTimeout
(long sessionTimeout) void
setSessionTimeout
(long sessionTimeout, TimeUnit sessionTimeoutUnit) void
setSessionTimeoutUnit
(TimeUnit sessionTimeoutUnit) Methods inherited from class org.apache.camel.support.cluster.AbstractCamelClusterService
getAttributes, getCamelContext, getId, getNamespaces, getOrder, getView, isLeader, releaseView, setAttribute, setAttributes, setCamelContext, setId, setOrder, startView, stopView
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.camel.cluster.CamelClusterService
unwrap
Methods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId
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
-
ZooKeeperClusterService
public ZooKeeperClusterService() -
ZooKeeperClusterService
-
-
Method Details
-
getConfiguration
-
setConfiguration
-
getCuratorFramework
public org.apache.curator.framework.CuratorFramework getCuratorFramework() -
setCuratorFramework
public void setCuratorFramework(org.apache.curator.framework.CuratorFramework curatorFramework) -
getNodes
-
setNodes
-
setNodes
-
getNamespace
-
setNamespace
-
getReconnectBaseSleepTime
public long getReconnectBaseSleepTime() -
setReconnectBaseSleepTime
public void setReconnectBaseSleepTime(long reconnectBaseSleepTime) -
setReconnectBaseSleepTime
public void setReconnectBaseSleepTime(long reconnectBaseSleepTime, TimeUnit reconnectBaseSleepTimeUnit) -
getReconnectBaseSleepTimeUnit
-
setReconnectBaseSleepTimeUnit
-
getReconnectMaxRetries
public int getReconnectMaxRetries() -
setReconnectMaxRetries
public void setReconnectMaxRetries(int reconnectMaxRetries) -
getSessionTimeout
public long getSessionTimeout() -
setSessionTimeout
public void setSessionTimeout(long sessionTimeout) -
setSessionTimeout
-
getSessionTimeoutUnit
-
setSessionTimeoutUnit
-
getConnectionTimeout
public long getConnectionTimeout() -
setConnectionTimeout
public void setConnectionTimeout(long connectionTimeout) -
setConnectionTimeout
-
getConnectionTimeoutUnit
-
setConnectionTimeoutUnit
-
getAuthInfoList
-
setAuthInfoList
-
getMaxCloseWait
public long getMaxCloseWait() -
setMaxCloseWait
public void setMaxCloseWait(long maxCloseWait) -
getMaxCloseWaitUnit
-
setMaxCloseWaitUnit
-
getRetryPolicy
public org.apache.curator.RetryPolicy getRetryPolicy() -
setRetryPolicy
public void setRetryPolicy(org.apache.curator.RetryPolicy retryPolicy) -
getBasePath
-
setBasePath
-
createView
protected org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView createView(String namespace) throws Exception - Specified by:
createView
in classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>
- Throws:
Exception
-
doStart
- Overrides:
doStart
in classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>
- Throws:
Exception
-