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 ZooKeeperMainFace
public void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config) throws Exception
runFromConfig
in interface ZooKeeperMainFace
Exception
public org.apache.zookeeper.server.quorum.QuorumPeer getQuorumPeer()
getQuorumPeer
in interface ZooKeeperMainFace
public void blockUntilStarted() throws Exception
blockUntilStarted
in interface ZooKeeperMainFace
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.