public interface Server extends ComponentRegistry
| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
getFeatures()
Get a list of features started
|
ServerState |
getServerState()
Get the Server's current state
|
Optional<io.vertx.core.Vertx> |
getVertx()
Get the Vert.x instance, available after the bootstrap features have started.
|
Thread |
restart()
Restart the Helix Server, asynchronously
|
Thread |
start()
Start the Helix Server, asynchronously
|
Thread |
stop(boolean immediate)
Start the Helix Server, asynchronously
|
findByType, findByType, getRegistrationMapOptional<io.vertx.core.Vertx> getVertx()
ServerState getServerState()
List<Feature> getFeatures()
Thread start()
IllegalStateException - if the server is not in the stopped stateThread restart()
This shuts down all the features, waits for the in-flight requests to complete, then starts the server again. Restarting the server includes re-creating all features.
IllegalStateException - if the server is not in the started stateThread stop(boolean immediate)
This shuts down all the features, waits for the in-flight requests to complete. During shut-down, all new HTTP requests will fail with HTTP error code 599. This signals the Load Balancer to take the service out of rotation, preventing new requests from flowing to the service.
IllegalStateException - if the server is not in the started stateCopyright © 2016. All rights reserved.