org.neo4j.kernel.ha.zookeeper
Class LocalZooKeeperCluster
java.lang.Object
org.neo4j.kernel.ha.zookeeper.LocalZooKeeperCluster
public class LocalZooKeeperCluster
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalZooKeeperCluster
public LocalZooKeeperCluster(int size,
File baseDir)
throws IOException
- Throws:
IOException
LocalZooKeeperCluster
public LocalZooKeeperCluster(int size,
LocalZooKeeperCluster.DataDirectoryPolicy dataDirectoryPolicy,
LocalZooKeeperCluster.PortPolicy clientPortPolicy,
LocalZooKeeperCluster.PortPolicy serverFirstPortPolicy,
LocalZooKeeperCluster.PortPolicy serverSecondPortPolicy)
throws IOException
- Throws:
IOException
getZooKeeperServersConfig
public Collection<String> getZooKeeperServersConfig()
getZooKeeperServersForHaInstance
public String getZooKeeperServersForHaInstance()
shutdown
public void shutdown()
defaultDataDirectoryPolicy
public static LocalZooKeeperCluster.DataDirectoryPolicy defaultDataDirectoryPolicy(File baseDirectory)
defaultPortPolicy
public static LocalZooKeeperCluster.PortPolicy defaultPortPolicy(int startPort)
getSize
public int getSize()
getDataDirectoryPolicy
public LocalZooKeeperCluster.DataDirectoryPolicy getDataDirectoryPolicy()
getClientPortPolicy
public LocalZooKeeperCluster.PortPolicy getClientPortPolicy()
getServerFirstPortPolicy
public LocalZooKeeperCluster.PortPolicy getServerFirstPortPolicy()
getServerSecondPortPolicy
public LocalZooKeeperCluster.PortPolicy getServerSecondPortPolicy()
Copyright © 2010 The Neo4j Graph Database Project. All Rights Reserved.