public class TCPJDBCServer extends Object
Note that multiple servers can be constructed to serve the same DBSystem. You can not use this object to connect a single TCP server to multiple DBSystem objects.
If the underlying database is shut down then this server is also shut down.
Constructor and Description |
---|
TCPJDBCServer(DBSystem system)
Constructs the TCP JDBC with the given DBSystem object, and sets the
TCP port and address (for multi-homed computers) to the setting of the
configuration in 'system'.
|
TCPJDBCServer(DBSystem system,
InetAddress bind_address,
int tcp_port)
Constructs the TCP JDBC with the given DBSystem object, and sets the
inet address and TCP port that we serve the database from.
|
TCPJDBCServer(DBSystem system,
int tcp_port)
Constructs the TCP JDBC with the given DBSystem object, and sets the
TCP port that we serve the database from.
|
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts the server and binds it to the given port.
|
void |
stop()
Stops the server running on the given port.
|
String |
toString()
Returns a string that contains some information about the server that
is running.
|
public TCPJDBCServer(DBSystem system, InetAddress bind_address, int tcp_port)
Constructing this server does not open the port to receive connections from outside. To start the JDBC server you need to call the 'start' method.
public TCPJDBCServer(DBSystem system, int tcp_port)
Constructing this server does not open the port to receive connections from outside. To start the JDBC server you need to call the 'start' method.
public TCPJDBCServer(DBSystem system)
Constructing this server does not open the port to receive connections from outside. To start the JDBC server you need to call the 'start' method.
public void start()
public void stop()
Note that this does NOT close the underlying DBSystem object. The DBSystem object must be closed separately.
Copyright © 2015. All rights reserved.