public class ZooKeeperComponent
extends org.apache.camel.impl.UriEndpointComponent
ZooKeeperEndpoints for interacting with a ZooKeeper cluster.| Constructor and Description |
|---|
ZooKeeperComponent() |
ZooKeeperComponent(org.apache.camel.CamelContext context) |
ZooKeeperComponent(ZooKeeperConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
long |
getBackoff() |
ZooKeeperConfiguration |
getConfiguration() |
String |
getConnectString() |
String |
getCreateMode() |
String |
getPath() |
List<String> |
getServers() |
int |
getTimeout() |
boolean |
isCreate() |
boolean |
isListChildren() |
boolean |
isRepeat() |
boolean |
isSendEmptyMessageOnDelete() |
void |
setBackoff(long backoff)
The time interval to backoff for after an error before retrying.
|
void |
setConfiguration(ZooKeeperConfiguration configuration)
To use a shared ZooKeeperConfiguration.
|
void |
setCreate(boolean shouldCreate)
Should the endpoint create the node if it does not currently exist.
|
void |
setCreateMode(String createMode)
The create mode that should be used for the newly created node
|
void |
setListChildren(boolean listChildren)
Whether the children of the node should be listed
|
void |
setPath(String path)
The node in the ZooKeeper server (aka znode)
|
void |
setRepeat(boolean repeat)
Should changes to the znode be 'watched' and repeatedly processed.
|
void |
setSendEmptyMessageOnDelete(boolean sendEmptyMessageOnDelete)
Upon the delete of a znode, should an empty message be send to the consumer
|
void |
setServers(List<String> servers)
The zookeeper server hosts
|
void |
setTimeout(int timeout)
The time interval to wait on connection before timing out.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClassafterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIpublic ZooKeeperComponent()
public ZooKeeperComponent(org.apache.camel.CamelContext context)
public ZooKeeperComponent(ZooKeeperConfiguration configuration)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.impl.DefaultComponentExceptionpublic ZooKeeperConfiguration getConfiguration()
public void setConfiguration(ZooKeeperConfiguration configuration)
public int getTimeout()
public void setTimeout(int timeout)
timeout - public boolean isListChildren()
public void setListChildren(boolean listChildren)
listChildren - public String getConnectString()
public void setPath(String path)
path - public String getPath()
public boolean isRepeat()
public void setRepeat(boolean repeat)
repeat - public long getBackoff()
public void setBackoff(long backoff)
backoff - public boolean isCreate()
public void setCreate(boolean shouldCreate)
shouldCreate - public String getCreateMode()
public void setCreateMode(String createMode)
createMode - public boolean isSendEmptyMessageOnDelete()
public void setSendEmptyMessageOnDelete(boolean sendEmptyMessageOnDelete)
sendEmptyMessageOnDelete - Apache Camel