Package org.eclipse.jetty.server
Class ShutdownMonitor
java.lang.Object
org.eclipse.jetty.server.ShutdownMonitor
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Shutdown/Stop Monitor thread.
This thread listens on the host/port specified by the STOP.HOST/STOP.PORT system parameter (defaults to 127.0.0.1/-1 for not listening) for request authenticated with the key given by the STOP.KEY system parameter for admin requests.
If the stop port is set to zero, then a random port is assigned and the port number is printed to stdout.
Commands "stop" and "status" are currently supported.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidderegister(LifeCycle lifeCycle) Deprecated.static ShutdownMonitorDeprecated.getKey()Deprecated.intgetPort()Deprecated.booleanisExitVm()Deprecated.static booleanisRegistered(LifeCycle lifeCycle) Deprecated.static voidDeprecated.voidsetDebug(boolean flag) Deprecated.voidsetExitVm(boolean exitVm) Deprecated.voidDeprecated.voidsetPort(int port) Deprecated.toString()Deprecated.
-
Method Details
-
getInstance
Deprecated. -
register
Deprecated. -
deregister
Deprecated. -
isRegistered
Deprecated. -
getKey
Deprecated. -
getPort
public int getPort()Deprecated. -
isExitVm
public boolean isExitVm()Deprecated. -
setDebug
public void setDebug(boolean flag) Deprecated. -
setExitVm
public void setExitVm(boolean exitVm) Deprecated.- Parameters:
exitVm- true to exit the VM on shutdown
-
setKey
Deprecated. -
setPort
public void setPort(int port) Deprecated. -
toString
Deprecated.
-