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>
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperClusterService()
ZooKeeperClusterService(ZooKeeperCuratorConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView
createView(String namespace)
protected void
doStart()
protected void
doStop()
List<org.apache.curator.framework.AuthInfo>
getAuthInfoList()
String
getBasePath()
ZooKeeperCuratorConfiguration
getConfiguration()
long
getConnectionTimeout()
TimeUnit
getConnectionTimeoutUnit()
org.apache.curator.framework.CuratorFramework
getCuratorFramework()
long
getMaxCloseWait()
TimeUnit
getMaxCloseWaitUnit()
String
getNamespace()
List<String>
getNodes()
long
getReconnectBaseSleepTime()
TimeUnit
getReconnectBaseSleepTimeUnit()
int
getReconnectMaxRetries()
org.apache.curator.RetryPolicy
getRetryPolicy()
long
getSessionTimeout()
TimeUnit
getSessionTimeoutUnit()
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
setNodes(String nodes)
void
setNodes(List<String> nodes)
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
-
-
-
-
Constructor Detail
-
ZooKeeperClusterService
public ZooKeeperClusterService()
-
ZooKeeperClusterService
public ZooKeeperClusterService(ZooKeeperCuratorConfiguration configuration)
-
-
Method Detail
-
getConfiguration
public ZooKeeperCuratorConfiguration getConfiguration()
-
setConfiguration
public void setConfiguration(ZooKeeperCuratorConfiguration configuration)
-
getCuratorFramework
public org.apache.curator.framework.CuratorFramework getCuratorFramework()
-
setCuratorFramework
public void setCuratorFramework(org.apache.curator.framework.CuratorFramework curatorFramework)
-
setNodes
public void setNodes(String nodes)
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
-
getReconnectBaseSleepTime
public long getReconnectBaseSleepTime()
-
setReconnectBaseSleepTime
public void setReconnectBaseSleepTime(long reconnectBaseSleepTime)
-
setReconnectBaseSleepTime
public void setReconnectBaseSleepTime(long reconnectBaseSleepTime, TimeUnit reconnectBaseSleepTimeUnit)
-
getReconnectBaseSleepTimeUnit
public TimeUnit getReconnectBaseSleepTimeUnit()
-
setReconnectBaseSleepTimeUnit
public void setReconnectBaseSleepTimeUnit(TimeUnit reconnectBaseSleepTimeUnit)
-
getReconnectMaxRetries
public int getReconnectMaxRetries()
-
setReconnectMaxRetries
public void setReconnectMaxRetries(int reconnectMaxRetries)
-
getSessionTimeout
public long getSessionTimeout()
-
setSessionTimeout
public void setSessionTimeout(long sessionTimeout)
-
setSessionTimeout
public void setSessionTimeout(long sessionTimeout, TimeUnit sessionTimeoutUnit)
-
getSessionTimeoutUnit
public TimeUnit getSessionTimeoutUnit()
-
setSessionTimeoutUnit
public void setSessionTimeoutUnit(TimeUnit sessionTimeoutUnit)
-
getConnectionTimeout
public long getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(long connectionTimeout)
-
setConnectionTimeout
public void setConnectionTimeout(long connectionTimeout, TimeUnit connectionTimeotUnit)
-
getConnectionTimeoutUnit
public TimeUnit getConnectionTimeoutUnit()
-
setConnectionTimeoutUnit
public void setConnectionTimeoutUnit(TimeUnit connectionTimeotUnit)
-
getAuthInfoList
public List<org.apache.curator.framework.AuthInfo> getAuthInfoList()
-
setAuthInfoList
public void setAuthInfoList(List<org.apache.curator.framework.AuthInfo> authInfoList)
-
getMaxCloseWait
public long getMaxCloseWait()
-
setMaxCloseWait
public void setMaxCloseWait(long maxCloseWait)
-
getMaxCloseWaitUnit
public TimeUnit getMaxCloseWaitUnit()
-
setMaxCloseWaitUnit
public void setMaxCloseWaitUnit(TimeUnit maxCloseWaitUnit)
-
getRetryPolicy
public org.apache.curator.RetryPolicy getRetryPolicy()
-
setRetryPolicy
public void setRetryPolicy(org.apache.curator.RetryPolicy retryPolicy)
-
getBasePath
public String getBasePath()
-
setBasePath
public void setBasePath(String basePath)
-
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
protected void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.cluster.AbstractCamelClusterService<org.apache.camel.component.zookeeper.cluster.ZooKeeperClusterView>
- Throws:
Exception
-
-