public class NetworkServerControlWrapper
extends java.lang.Object
NetworkServerControl
instance, using reflection
to allow TestConfiguration
to be used without having
derbynet.jar on the classpath.
Only methods actually required by TestConfiguration
are wrapped, and
this class depends on the functionality implemented by
com.splicemachine.dbTesting.junit.NetworkServerTestSetup
.
The problem before was that an exception was thrown during class loading time, even if the network server functionality was never required by the tests being run. With this wrapper, an exception will be thrown only if the functionality is actually required and the necessary classes are not on the classpath.
Constructor and Description |
---|
NetworkServerControlWrapper()
Creates a new wrapper object.
|
Modifier and Type | Method and Description |
---|---|
void |
ping() |
void |
shutdown() |
void |
start(java.io.PrintWriter printWriter) |
NetworkServerControlWrapper() throws java.lang.Exception
java.lang.Exception
- if creating the NetworkServerControl
instance
failspublic void ping() throws java.lang.Exception
java.lang.Exception
NetworkServerControl.ping()
public void shutdown() throws java.lang.Exception
java.lang.Exception
NetworkServerControl.shutdown()
public void start(java.io.PrintWriter printWriter) throws java.lang.Exception
java.lang.Exception
NetworkServerControl.start(java.io.PrintWriter)