Package org.apache.curator.test
Class TestingZooKeeperMain
- java.lang.Object
-
- org.apache.curator.test.TestingZooKeeperMain
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ZooKeeperMainFace
public class TestingZooKeeperMain extends Object implements ZooKeeperMainFace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestingZooKeeperMain.TestZooKeeperServer
-
Constructor Summary
Constructors Constructor Description TestingZooKeeperMain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blockUntilStarted()
void
close()
void
kill()
void
runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config)
-
-
-
Method Detail
-
kill
public void kill()
- Specified by:
kill
in interfaceZooKeeperMainFace
-
runFromConfig
public void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config) throws Exception
- Specified by:
runFromConfig
in interfaceZooKeeperMainFace
- Throws:
Exception
-
blockUntilStarted
public void blockUntilStarted()
- Specified by:
blockUntilStarted
in interfaceZooKeeperMainFace
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-