Closeable
, AutoCloseable
, ZooKeeperMainFace
public class TestingZooKeeperMain extends Object implements ZooKeeperMainFace
Modifier and Type | Class | Description |
---|---|---|
static class |
TestingZooKeeperMain.TestZooKeeperServer |
Constructor | Description |
---|---|
TestingZooKeeperMain() |
Modifier and Type | Method | Description |
---|---|---|
void |
blockUntilStarted() |
|
void |
close() |
|
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 void blockUntilStarted() throws Exception
blockUntilStarted
in interface ZooKeeperMainFace
Exception
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.