Package org.eclipse.jetty.server
Class ShutdownMonitor
- java.lang.Object
-
- org.eclipse.jetty.server.ShutdownMonitor
-
@Deprecated(since="2021-05-27") public class ShutdownMonitor extends java.lang.ObjectDeprecated.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidderegister(LifeCycle lifeCycle)Deprecated.static ShutdownMonitorgetInstance()Deprecated.java.lang.StringgetKey()Deprecated.intgetPort()Deprecated.booleanisExitVm()Deprecated.static booleanisRegistered(LifeCycle lifeCycle)Deprecated.static voidregister(LifeCycle... lifeCycles)Deprecated.voidsetDebug(boolean flag)Deprecated.voidsetExitVm(boolean exitVm)Deprecated.voidsetKey(java.lang.String key)Deprecated.voidsetPort(int port)Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
getInstance
public static ShutdownMonitor getInstance()
Deprecated.
-
register
public static void register(LifeCycle... lifeCycles)
Deprecated.
-
deregister
public static void deregister(LifeCycle lifeCycle)
Deprecated.
-
isRegistered
public static boolean isRegistered(LifeCycle lifeCycle)
Deprecated.
-
getKey
public java.lang.String 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
public void setKey(java.lang.String key)
Deprecated.
-
setPort
public void setPort(int port)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-