Class ShutdownMonitor

java.lang.Object
org.eclipse.jetty.server.ShutdownService
org.eclipse.jetty.server.ShutdownMonitor

@Deprecated(since="12.1.0", forRemoval=true) public class ShutdownMonitor extends ShutdownService
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced with ShutdownService component, which is not a singleton.
Shutdown Monitor.

This is a singleton that is only valid when the following System Properties are defined.

STOP.HOST
IP to listen on, defaults to 127.0.0.1
STOP.PORT
Port to listen on, defaults to -1 (or disabled).
(0 will use a port number that is automatically allocated)
STOP.KEY
The Key that must be provided to initiate a Shutdown.
Limited to US_ASCII charset.
If one is not provided, a generated Key will be created.
STOP.EXIT
Boolean to indicate if a System.exit(0) should occur on successful shutdown, defaults to true

This starts a ServerSocket that listens on the host/port specified by the configuration, and starts a thread to accept incoming requests.

See ShutdownService for details about commands that can be sent to this server.