Package org.apache.zookeeper.test.system
Class BaseSysTest
java.lang.Object
org.apache.zookeeper.test.system.BaseSysTest
- Direct Known Subclasses:
SimpleSysTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureClients(int count, Class<? extends Instance> clazz, String params) voidconfigureServers(int count) intintstatic voidvoidsetUp()voidstartClient(int index) voidvoidstartServer(int index) voidvoidstopClient(int index) voidvoidstopServer(int index) voidvoidtearDown()
-
Field Details
-
prefix
-
-
Constructor Details
-
BaseSysTest
public BaseSysTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
getHostPort
-
getServerCount
public int getServerCount() -
getClientCount
public int getClientCount() -
startServers
- Throws:
IOException
-
stopServers
- Throws:
IOException
-
startClients
- Throws:
IOException
-
stopClients
- Throws:
IOException
-
configureServers
- Throws:
Exception
-
startServer
- Throws:
IOException
-
stopServer
- Throws:
IOException
-
configureClients
public void configureClients(int count, Class<? extends Instance> clazz, String params) throws Exception - Throws:
Exception
-
startClient
- Throws:
IOException
-
stopClient
- Throws:
IOException
-
main
-