Package org.apache.camel.model.cloud
Class ZooKeeperServiceCallServiceDiscoveryConfiguration
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.model.cloud.ServiceCallConfiguration
-
- org.apache.camel.model.cloud.ServiceCallServiceDiscoveryConfiguration
-
- org.apache.camel.model.cloud.ZooKeeperServiceCallServiceDiscoveryConfiguration
-
- All Implemented Interfaces:
org.apache.camel.cloud.ServiceDiscoveryFactory
,org.apache.camel.cloud.ServiceFactory<org.apache.camel.cloud.ServiceDiscovery>
@Metadata(label="routing,cloud,service-discovery") @Configurer(extended=true) public class ZooKeeperServiceCallServiceDiscoveryConfiguration extends ServiceCallServiceDiscoveryConfiguration
-
-
Field Summary
-
Fields inherited from class org.apache.camel.model.cloud.ServiceCallConfiguration
properties
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperServiceCallServiceDiscoveryConfiguration()
ZooKeeperServiceCallServiceDiscoveryConfiguration(ServiceCallDefinition parent)
-
Method Summary
-
Methods inherited from class org.apache.camel.model.cloud.ServiceCallServiceDiscoveryConfiguration
end, endParent, newInstance, property
-
Methods inherited from class org.apache.camel.model.cloud.ServiceCallConfiguration
getConfiguredOptions, getProperties, getPropertiesAsMap, postProcessFactoryParameters, setProperties
-
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
-
-
-
Constructor Detail
-
ZooKeeperServiceCallServiceDiscoveryConfiguration
public ZooKeeperServiceCallServiceDiscoveryConfiguration()
-
ZooKeeperServiceCallServiceDiscoveryConfiguration
public ZooKeeperServiceCallServiceDiscoveryConfiguration(ServiceCallDefinition parent)
-
-
Method Detail
-
getNodes
public String getNodes()
-
setNodes
public void setNodes(String nodes)
A comma separate list of servers to connect to in the form host:port
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
As ZooKeeper is a shared space, users of a given cluster should stay within a pre-defined namespace. If a namespace is set here, all paths will get pre-pended with the namespace
-
getReconnectBaseSleepTime
public String getReconnectBaseSleepTime()
-
setReconnectBaseSleepTime
public void setReconnectBaseSleepTime(String reconnectBaseSleepTime)
Initial amount of time to wait between retries.
-
getReconnectMaxSleepTime
public String getReconnectMaxSleepTime()
-
setReconnectMaxSleepTime
public void setReconnectMaxSleepTime(String reconnectMaxSleepTime)
Max time in ms to sleep on each retry
-
getReconnectMaxRetries
public String getReconnectMaxRetries()
-
setReconnectMaxRetries
public void setReconnectMaxRetries(String reconnectMaxRetries)
Max number of times to retry
-
getSessionTimeout
public String getSessionTimeout()
-
setSessionTimeout
public void setSessionTimeout(String sessionTimeout)
Session timeout.
-
getConnectionTimeout
public String getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(String connectionTimeout)
Connection timeout.
-
getBasePath
public String getBasePath()
-
setBasePath
public void setBasePath(String basePath)
Set the base path to store in ZK
-
nodes
public ZooKeeperServiceCallServiceDiscoveryConfiguration nodes(String nodes)
-
namespace
public ZooKeeperServiceCallServiceDiscoveryConfiguration namespace(String namespace)
-
reconnectBaseSleepTime
public ZooKeeperServiceCallServiceDiscoveryConfiguration reconnectBaseSleepTime(String reconnectBaseSleepTime)
-
reconnectMaxSleepTime
public ZooKeeperServiceCallServiceDiscoveryConfiguration reconnectMaxSleepTime(String reconnectMaxSleepTime)
-
reconnectMaxRetries
public ZooKeeperServiceCallServiceDiscoveryConfiguration reconnectMaxRetries(int reconnectMaxRetries)
-
sessionTimeout
public ZooKeeperServiceCallServiceDiscoveryConfiguration sessionTimeout(String sessionTimeout)
-
connectionTimeout
public ZooKeeperServiceCallServiceDiscoveryConfiguration connectionTimeout(String connectionTimeout)
-
basePath
public ZooKeeperServiceCallServiceDiscoveryConfiguration basePath(String basePath)
-
-