Class RemoteLogServer
java.lang.Object
|
+--RemoteLogServer
- public class RemoteLogServer
- extends java.lang.Object
A RemoteLogServer is a server that administers a Log for remote
clients. The server processes client requests as textual commands;
it waits for connections, reads the command, and processes the
request, and returns output if necessary.
|
Field Summary |
static int |
PORT
The default port on which to listen for connections. |
|
Constructor Summary |
RemoteLogServer(int port,
int logSize)
Constructor takes parameters setting up a server socket that
waits for client connections, and for establishing a local log
in which to store received log records. |
|
Method Summary |
static void |
main(java.lang.String[] args)
Starts up the server on default port (which is set on the
command-line, using -Dport=n where n is an integer). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
public static final int PORT
- The default port on which to listen for connections.
RemoteLogServer
public RemoteLogServer(int port,
int logSize)
- Constructor takes parameters setting up a server socket that
waits for client connections, and for establishing a local log
in which to store received log records.
- Parameters:
port - the TCP port the server is listening for connections onlogSize - the size of the local log
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Starts up the server on default port (which is set on the
command-line, using -Dport=n where n is an integer).
java.io.IOException