Show ServerContext.java syntax highlighted
package persister.network;
import java.util.List;
import java.util.Vector;
import persister.distributed.ClientCommunicator;
import persister.distributed.ServerCommunicator;
/**
* This class stores information about the currently running server.
*
* @author dhillonh
*
*/
public class ServerContext {
private int port;
private ServerCommunicator serverCommunicator;
// public List <ClientCommunicator> clients;
//
// public ServerContext()
// {
// clients = new Vector();
// }
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public ServerCommunicator getCommunicator() {
return serverCommunicator;
}
public void setCommunicator(ServerCommunicator communicator) {
this.serverCommunicator = communicator;
}
}//end class
See more files for this project here