org.inria.myriads.snoozenode.configurator.faulttolerance
Class ZooKeeperSettings

java.lang.Object
  extended by org.inria.myriads.snoozenode.configurator.faulttolerance.ZooKeeperSettings

public class ZooKeeperSettings
extends Object

ZooKeeper parameters.

Author:
Eugen Feller

Constructor Summary
ZooKeeperSettings()
           
 
Method Summary
 String getHosts()
          Returns the hosts.
 int getSessionTimeout()
          Returns the zookeeper session timeout.
 void setHosts(String hosts)
          Sets the hosts list.
 void setSessionTimeout(int sessionTimeOut)
          Sets the session timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperSettings

public ZooKeeperSettings()
Method Detail

setHosts

public void setHosts(String hosts)
Sets the hosts list.

Parameters:
hosts - The hosts list

getHosts

public String getHosts()
Returns the hosts.

Returns:
The hosts

setSessionTimeout

public void setSessionTimeout(int sessionTimeOut)
Sets the session timeout.

Parameters:
sessionTimeOut - The session timeout

getSessionTimeout

public int getSessionTimeout()
Returns the zookeeper session timeout.

Returns:
The session timeout


Copyright © 2012. All Rights Reserved.