org.apache.camel.component.zookeeper
Class ZooKeeperConfiguration

java.lang.Object
  extended by org.apache.camel.component.zookeeper.ZooKeeperConfiguration
All Implemented Interfaces:
Cloneable

public class ZooKeeperConfiguration
extends Object
implements Cloneable

ZookeeperConfiguration encapsulates the configuration used to interact with a ZooKeeper cluster. Most typically it is parsed from endpoint uri but may also be configured programatically and applied to a ZooKeeperComponent. A copy of this component's configuration will be injected into any ZooKeeperEndpoints the component creates.


Constructor Summary
ZooKeeperConfiguration()
           
 
Method Summary
 void addZookeeperServer(String server)
           
 void clearChanged()
           
 ZooKeeperConfiguration copy()
           
 long getBackoff()
           
 String getConnectString()
           
 String getCreateMode()
           
 String getPath()
           
 List<String> getServers()
           
 int getTimeout()
           
 boolean isChanged()
           
 boolean isListChildren()
           
 boolean isSendEmptyMessageOnDelete()
           
 void setAwaitExistence(boolean awaitExistence)
          Deprecated. The usage of this option has no effect at all.
 void setBackoff(long backoff)
           
 void setCreate(boolean shouldCreate)
           
 void setCreateMode(String createMode)
           
 void setListChildren(boolean listChildren)
           
 void setPath(String path)
           
 void setRepeat(boolean repeat)
           
 void setSendEmptyMessageOnDelete(boolean sendEmptyMessageOnDelete)
           
 void setServers(List<String> servers)
           
 void setTimeout(int timeout)
           
 boolean shouldAwaitExistence()
          Deprecated. The usage of this option has no effect at all.
 boolean shouldCreate()
           
 boolean shouldRepeat()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperConfiguration

public ZooKeeperConfiguration()
Method Detail

addZookeeperServer

public void addZookeeperServer(String server)

getServers

public List<String> getServers()

setServers

public void setServers(List<String> servers)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

isListChildren

public boolean isListChildren()

setListChildren

public void setListChildren(boolean listChildren)

clearChanged

public void clearChanged()

isChanged

public boolean isChanged()

getConnectString

public String getConnectString()

setPath

public void setPath(String path)

getPath

public String getPath()

shouldRepeat

public boolean shouldRepeat()

setRepeat

public void setRepeat(boolean repeat)

copy

public ZooKeeperConfiguration copy()

shouldAwaitExistence

@Deprecated
public boolean shouldAwaitExistence()
Deprecated. The usage of this option has no effect at all.


setAwaitExistence

@Deprecated
public void setAwaitExistence(boolean awaitExistence)
Deprecated. The usage of this option has no effect at all.


getBackoff

public long getBackoff()

setBackoff

public void setBackoff(long backoff)

setCreate

public void setCreate(boolean shouldCreate)

shouldCreate

public boolean shouldCreate()

getCreateMode

public String getCreateMode()

setCreateMode

public void setCreateMode(String createMode)

isSendEmptyMessageOnDelete

public boolean isSendEmptyMessageOnDelete()

setSendEmptyMessageOnDelete

public void setSendEmptyMessageOnDelete(boolean sendEmptyMessageOnDelete)


Apache Camel