cat.hist
Class GenericServer
java.lang.Object
cat.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GenericServer
public GenericServer()
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)