org.apache.curator.test
Class TestingZooKeeperMain

java.lang.Object
  extended by org.apache.zookeeper.server.ZooKeeperServerMain
      extended by org.apache.curator.test.TestingZooKeeperMain
All Implemented Interfaces:
Closeable, ZooKeeperMainFace

public class TestingZooKeeperMain
extends org.apache.zookeeper.server.ZooKeeperServerMain
implements ZooKeeperMainFace


Constructor Summary
TestingZooKeeperMain()
           
 
Method Summary
 void blockUntilStarted()
           
 void close()
           
 org.apache.zookeeper.server.quorum.QuorumPeer getQuorumPeer()
           
 void kill()
           
 void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config)
           
 
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServerMain
initializeAndRun, main, runFromConfig, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestingZooKeeperMain

public TestingZooKeeperMain()
Method Detail

kill

public void kill()
Specified by:
kill in interface ZooKeeperMainFace

runFromConfig

public void runFromConfig(org.apache.zookeeper.server.quorum.QuorumPeerConfig config)
                   throws Exception
Specified by:
runFromConfig in interface ZooKeeperMainFace
Throws:
Exception

getQuorumPeer

public org.apache.zookeeper.server.quorum.QuorumPeer getQuorumPeer()
Specified by:
getQuorumPeer in interface ZooKeeperMainFace

blockUntilStarted

public void blockUntilStarted()
                       throws Exception
Specified by:
blockUntilStarted in interface ZooKeeperMainFace
Throws:
Exception

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.