- All Superinterfaces:
AutoCloseable
,Closeable
An interface for the
Server
implementation.
Solely created to provide better testing access-
Method Summary
Modifier and TypeMethodDescriptionFuture
<?> Obtain theFuture
of the central loop of this server objectgetHost()
Get the string version of the address of this server.int
getPort()
void
removeMyRecord
(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.void
start()
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. -
getCentralLoopFuture
Future<?> getCentralLoopFuture()Obtain theFuture
of the central loop of this server object -
getServerType
HttpServerType getServerType()
-