nserverdemo
Class NetworkServerUtil

java.lang.Object
nserverdemo.NetworkServerUtil
- public class NetworkServerUtil
- extends java.lang.Object
Class for starting the Derby NetworkServer on a separate Thread.
This class provides methods to start, and shutdown the server
|
Method Summary |
void |
shutdown()
Shutdown the NetworkServer |
void |
start()
Start Derby Network server |
void |
testForConnection()
Try to test for a connection
Throws exception if unable to get a connection |
void |
trace(boolean onoff)
trace utility of server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
portNum
private int portNum
serverControl
private org.apache.derby.drda.NetworkServerControl serverControl
pw
private java.io.PrintWriter pw
NetworkServerUtil
public NetworkServerUtil(int port,
java.io.PrintWriter pw)
trace
public void trace(boolean onoff)
- trace utility of server
testForConnection
public void testForConnection()
throws java.lang.Exception
- Try to test for a connection
Throws exception if unable to get a connection
shutdown
public void shutdown()
- Shutdown the NetworkServer
start
public void start()
- Start Derby Network server