Package org.apache.zookeeper.test.system
Class BaseSysTest
- java.lang.Object
-
- org.apache.zookeeper.test.system.BaseSysTest
-
- Direct Known Subclasses:
SimpleSysTest
public class BaseSysTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringprefix
-
Constructor Summary
Constructors Constructor Description BaseSysTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureClients(int count, java.lang.Class<? extends Instance> clazz, java.lang.String params)voidconfigureServers(int count)intgetClientCount()java.lang.StringgetHostPort()intgetServerCount()static voidmain(java.lang.String[] args)voidsetUp()voidstartClient(int index)voidstartClients()voidstartServer(int index)voidstartServers()voidstopClient(int index)voidstopClients()voidstopServer(int index)voidstopServers()voidtearDown()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
getHostPort
public java.lang.String getHostPort()
-
getServerCount
public int getServerCount()
-
getClientCount
public int getClientCount()
-
startServers
public void startServers() throws java.io.IOException- Throws:
java.io.IOException
-
stopServers
public void stopServers() throws java.io.IOException- Throws:
java.io.IOException
-
startClients
public void startClients() throws java.io.IOException- Throws:
java.io.IOException
-
stopClients
public void stopClients() throws java.io.IOException- Throws:
java.io.IOException
-
configureServers
public void configureServers(int count) throws java.lang.Exception- Throws:
java.lang.Exception
-
startServer
public void startServer(int index) throws java.io.IOException- Throws:
java.io.IOException
-
stopServer
public void stopServer(int index) throws java.io.IOException- Throws:
java.io.IOException
-
configureClients
public void configureClients(int count, java.lang.Class<? extends Instance> clazz, java.lang.String params) throws java.lang.Exception- Throws:
java.lang.Exception
-
startClient
public void startClient(int index) throws java.io.IOException- Throws:
java.io.IOException
-
stopClient
public void stopClient(int index) throws java.io.IOException- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args)
-
-