Interface Server
- All Known Subinterfaces:
Rest.RestServer,Ssh.SshServer
- All Known Implementing Classes:
NoOpServer
public interface Server
A generic server, something that can be started or stopped and, finally, disposed.
A platform managed server is instantiated via a public constructor receiving a
String[] with
command-line arguments - intended for handcrafted servers - or (less priority) a public non-arg
constructor - intended for generated servers.- Author:
- Holger Eichelberger, SSE
-
Method Summary
-
Method Details
-
start
Server start()Start the server without waiting time/blocking.- Returns:
- this
-
stop
void stop(boolean dispose) Stop the server. So far, we make no statement whether re-starting the server is possible, but it is safe to assume that re-starting is not foreseen.- Parameters:
dispose- shall also allocated resources of this server be disposed
-
stop
Stops a given server instance.- Parameters:
server- the server instance, may be nulldispose- shall also allocated resources of this server be disposed
-