- All Superinterfaces:
AutoCloseable,Closeable
An interface for the
Server implementation.
Solely created to provide better testing access-
Method Summary
Modifier and TypeMethodDescriptionvoidFuture<?> Obtain theFutureof the central loop of this server objectgetHost()Get the string version of the address of this server.intgetPort()voidremoveMyRecord(ISocketWrapper socketWrapper) When we first create a SocketWrapper in Server, we provide it a reference back to this object, so that it can call this command.voidstart()This is where the central loop of our server is started
-
Method Details
-
start
void start()This is where the central loop of our server is started -
getHost
String getHost()Get the string version of the address of this server. SeeInetAddress.getHostAddress() -
getPort
int getPort() -
removeMyRecord
When we first create a SocketWrapper in Server, we provide it a reference back to this object, so that it can call this command. This class maintains a list of open sockets in setOfSWs, and allows generated SocketWrappers to deregister themselves from this list by using this method. -
addToSetOfSws
-
getCentralLoopFuture
Future<?> getCentralLoopFuture()Obtain theFutureof the central loop of this server object -
getServerType
HttpServerType getServerType()
-