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.Object
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
deregister(LifeCycle lifeCycle)
Deprecated.static ShutdownMonitor
getInstance()
Deprecated.java.lang.String
getKey()
Deprecated.int
getPort()
Deprecated.boolean
isExitVm()
Deprecated.static boolean
isRegistered(LifeCycle lifeCycle)
Deprecated.static void
register(LifeCycle... lifeCycles)
Deprecated.void
setDebug(boolean flag)
Deprecated.void
setExitVm(boolean exitVm)
Deprecated.void
setKey(java.lang.String key)
Deprecated.void
setPort(int port)
Deprecated.java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
-