public class TestingZooKeeperMain extends Object implements ZooKeeperMainFace
| Modifier and Type | Class and Description |
|---|---|
static class |
TestingZooKeeperMain.TestZooKeeperServer |
| 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–2015 The Apache Software Foundation. All rights reserved.