public class TestingZooKeeperMain extends org.apache.zookeeper.server.ZooKeeperServerMain implements ZooKeeperMainFace
| Constructor and Description |
|---|
TestingZooKeeperMain() |
| Modifier and Type | Method and Description |
|---|---|
void |
blockUntilStarted() |
void |
close() |
org.apache.zookeeper.server.quorum.QuorumPeer |
getQuorumPeer() |
void |
kill() |
void |
runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config) |
public void kill()
kill in interface ZooKeeperMainFacepublic void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config)
throws Exception
runFromConfig in interface ZooKeeperMainFaceExceptionpublic org.apache.zookeeper.server.quorum.QuorumPeer getQuorumPeer()
getQuorumPeer in interface ZooKeeperMainFacepublic void blockUntilStarted()
throws Exception
blockUntilStarted in interface ZooKeeperMainFaceExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.