public interface RatpackServer
Modifier and Type | Method and Description |
---|---|
String |
getBindHost()
The actual host/ip that the application is bound to.
|
int |
getBindPort()
The actual port that the application is bound to.
|
LaunchConfig |
getLaunchConfig()
The (read only) configuration that was used to launch this server.
|
String |
getScheme()
The URL scheme the server uses.
|
boolean |
isRunning()
Returns
true if the server is running. |
void |
start()
Starts the server, returning as soon as the server is up and ready to receive requests.
|
void |
stop()
Stops the server, returning as soon as the server has stopped receiving requests.
|
LaunchConfig getLaunchConfig()
String getScheme()
int getBindPort()
String getBindHost()
boolean isRunning()
true
if the server is running.true
if the server is running.void start() throws Exception
This will create new threads that are not daemonized.
Exception
- if the server could not be started