org.apache.curator.test
Class TestingZooKeeperMain
java.lang.Object
org.apache.zookeeper.server.ZooKeeperServerMain
org.apache.curator.test.TestingZooKeeperMain
- All Implemented Interfaces:
- Closeable, ZooKeeperMainFace
public class TestingZooKeeperMain
- extends org.apache.zookeeper.server.ZooKeeperServerMain
- implements ZooKeeperMainFace
| Methods inherited from class org.apache.zookeeper.server.ZooKeeperServerMain |
initializeAndRun, main, runFromConfig, shutdown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestingZooKeeperMain
public TestingZooKeeperMain()
kill
public void kill()
- Specified by:
kill in interface ZooKeeperMainFace
runFromConfig
public void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config)
throws Exception
- Specified by:
runFromConfig in interface ZooKeeperMainFace
- Throws:
Exception
getQuorumPeer
public org.apache.zookeeper.server.quorum.QuorumPeer getQuorumPeer()
- Specified by:
getQuorumPeer in interface ZooKeeperMainFace
blockUntilStarted
public void blockUntilStarted()
throws Exception
- Specified by:
blockUntilStarted in interface ZooKeeperMainFace
- Throws:
Exception
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.