com.bigdata.jini.start.config
Class ZookeeperClientConfig

java.lang.Object
  extended by com.bigdata.jini.start.config.ZookeeperClientConfig

public class ZookeeperClientConfig
extends Object

Helper class for the ZooKeeper client configuration.

Version:
$Id$
Author:
Bryan Thompson

Nested Class Summary
static interface ZookeeperClientConfig.Options
          Zookeeper client options.
 
Field Summary
 List<org.apache.zookeeper.data.ACL> acl
          The ACL used to create znodes on the behalf of the federation.
 String servers
          A comma delimited list of servers.
 int sessionTimeout
          The session timeout.
 String zroot
          The path to the zookeeper znode that is the root for all data for the federation.
 
Constructor Summary
ZookeeperClientConfig()
          Alternative version used to configure from System properties or as set via -D.
ZookeeperClientConfig(net.jini.config.Configuration config)
          Reads the zookeeper client configuration from a Configuration.
 
Method Summary
 String toString()
           
 void writeConfiguration(Writer w)
          Writes out the configuration in a manner that is compatible with #readConfiguration(Configuration).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

zroot

public final String zroot
The path to the zookeeper znode that is the root for all data for the federation.

See Also:
ZookeeperClientConfig.Options.ZROOT

sessionTimeout

public final int sessionTimeout
The session timeout.

See Also:
ZookeeperClientConfig.Options.SESSION_TIMEOUT

servers

public final String servers
A comma delimited list of servers.

See Also:
ZookeeperClientConfig.Options.SERVERS

acl

public final List<org.apache.zookeeper.data.ACL> acl
The ACL used to create znodes on the behalf of the federation.

See Also:
ZookeeperClientConfig.Options.ACL
Constructor Detail

ZookeeperClientConfig

public ZookeeperClientConfig()
                      throws net.jini.config.ConfigurationException
Alternative version used to configure from System properties or as set via -D.

Throws:
net.jini.config.ConfigurationException

ZookeeperClientConfig

public ZookeeperClientConfig(net.jini.config.Configuration config)
                      throws net.jini.config.ConfigurationException
Reads the zookeeper client configuration from a Configuration.

Parameters:
config - The configuration object.
Throws:
net.jini.config.ConfigurationException
Method Detail

toString

public String toString()
Overrides:
toString in class Object

writeConfiguration

public void writeConfiguration(Writer w)
                        throws IOException
Writes out the configuration in a manner that is compatible with #readConfiguration(Configuration).

Throws:
IOException


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.