cat.hist
Class GenericServer

java.lang.Object
  extended bycat.hist.GenericServer

public class GenericServer
extends java.lang.Object

This class is a server which acts as a go-between between CAT and the database. This server can be run locally or remotely. It takes in requests from the HistoryManager of CAT, and then uses ClientSocket to make the requests on the SQL database.


Field Summary
private  int counter
           
static java.lang.String DEFAULT_HOST
           
static int DEFAULT_PORT
           
private  boolean ifStop
           
private  int MAX_CONN
           
private  int SOCKET_TIMEOUT
           
 
Constructor Summary
GenericServer()
           
 
Method Summary
 ClientSocket createSocket(GenericServer gs, java.net.Socket sk)
           
 void decCounter()
           
 void incCounter()
           
static void main(java.lang.String[] args)
           
 void setStop(boolean b)
           
 void startHistServer()
           
 void startHistServer(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_HOST

public static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

MAX_CONN

private int MAX_CONN

SOCKET_TIMEOUT

private int SOCKET_TIMEOUT

counter

private int counter

ifStop

private boolean ifStop
Constructor Detail

GenericServer

public GenericServer()
Method Detail

setStop

public void setStop(boolean b)

incCounter

public void incCounter()

decCounter

public void decCounter()

main

public static void main(java.lang.String[] args)

startHistServer

public void startHistServer()

startHistServer

public void startHistServer(int port)

createSocket

public ClientSocket createSocket(GenericServer gs,
                                 java.net.Socket sk)