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.HasCamelContext,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, SUSPENDINGFields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterViewcreateView(String namespace) protected voiddoStart()protected voiddoStop()List<org.apache.curator.framework.AuthInfo> longorg.apache.curator.framework.CuratorFrameworklonggetNodes()longintorg.apache.curator.RetryPolicylongvoidsetAuthInfoList(List<org.apache.curator.framework.AuthInfo> authInfoList) voidsetBasePath(String basePath) voidsetConfiguration(ZooKeeperCuratorConfiguration configuration) voidsetConnectionTimeout(long connectionTimeout) voidsetConnectionTimeout(long connectionTimeout, TimeUnit connectionTimeotUnit) voidsetConnectionTimeoutUnit(TimeUnit connectionTimeotUnit) voidsetCuratorFramework(org.apache.curator.framework.CuratorFramework curatorFramework) voidsetMaxCloseWait(long maxCloseWait) voidsetMaxCloseWaitUnit(TimeUnit maxCloseWaitUnit) voidsetNamespace(String namespace) voidvoidvoidsetReconnectBaseSleepTime(long reconnectBaseSleepTime) voidsetReconnectBaseSleepTime(long reconnectBaseSleepTime, TimeUnit reconnectBaseSleepTimeUnit) voidsetReconnectBaseSleepTimeUnit(TimeUnit reconnectBaseSleepTimeUnit) voidsetReconnectMaxRetries(int reconnectMaxRetries) voidsetRetryPolicy(org.apache.curator.RetryPolicy retryPolicy) voidsetSessionTimeout(long sessionTimeout) voidsetSessionTimeout(long sessionTimeout, TimeUnit sessionTimeoutUnit) voidsetSessionTimeoutUnit(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, stopViewMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, 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.camel.cluster.CamelClusterService
unwrapMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedIdMethods 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
-
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:
createViewin classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>- Throws:
Exception
-