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
 

Field Detail

PORT

public static final int PORT
The default port on which to listen for connections.

Constructor Detail

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 on
logSize - the size of the local log
Method Detail

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