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.String
prefix
-
Constructor Summary
Constructors Constructor Description BaseSysTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureClients(int count, java.lang.Class<? extends Instance> clazz, java.lang.String params)
void
configureServers(int count)
int
getClientCount()
java.lang.String
getHostPort()
int
getServerCount()
static void
main(java.lang.String[] args)
void
setUp()
void
startClient(int index)
void
startClients()
void
startServer(int index)
void
startServers()
void
stopClient(int index)
void
stopClients()
void
stopServer(int index)
void
stopServers()
void
tearDown()
-
-
-
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)
-
-