|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.jdbcserver.TCPServer
public final class TCPServer
A TCP/IP socket server that opens a single port and allows JDBC clients to connect through the port to talk with the database.
Constructor Summary | |
---|---|
TCPServer(Database database)
Constructs the TCPServer over the given DatabaseSystem configuration. |
Method Summary | |
---|---|
boolean |
checkAvailable(java.net.InetAddress bind_address,
int tcp_port)
Checks to see if there's already something listening on the jdbc port. |
void |
close()
Closes the JDBC Server. |
DebugLogger |
Debug()
Returns a DebugLogger object that we can log debug messages to. |
int |
getJDBCPort()
Returns the port the JDBC server is on. |
void |
start(java.net.InetAddress bind_address,
int tcp_port,
java.lang.String connection_pool_model)
Starts the server running. |
java.lang.String |
toString()
Returns human understandable information about the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TCPServer(Database database)
Method Detail |
---|
public final DebugLogger Debug()
public int getJDBCPort()
public boolean checkAvailable(java.net.InetAddress bind_address, int tcp_port)
public void start(java.net.InetAddress bind_address, int tcp_port, java.lang.String connection_pool_model)
public void close()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |