public class ShutdownMonitor
extends java.lang.Object
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 (defaults to "eclipse") 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.
| Modifier and Type | Method | Description |
|---|---|---|
static void |
deregister(org.eclipse.jetty.util.component.LifeCycle lifeCycle) |
|
static ShutdownMonitor |
getInstance() |
|
java.lang.String |
getKey() |
|
int |
getPort() |
|
protected boolean |
isAlive() |
|
boolean |
isExitVm() |
|
static boolean |
isRegistered(org.eclipse.jetty.util.component.LifeCycle lifeCycle) |
|
static void |
register(org.eclipse.jetty.util.component.LifeCycle... lifeCycles) |
|
protected static void |
reset() |
|
void |
setDebug(boolean flag) |
|
void |
setExitVm(boolean exitVm) |
|
void |
setKey(java.lang.String key) |
|
void |
setPort(int port) |
|
protected void |
start() |
|
java.lang.String |
toString() |
public static ShutdownMonitor getInstance()
protected static void reset()
public static void register(org.eclipse.jetty.util.component.LifeCycle... lifeCycles)
public static void deregister(org.eclipse.jetty.util.component.LifeCycle lifeCycle)
public static boolean isRegistered(org.eclipse.jetty.util.component.LifeCycle lifeCycle)
public java.lang.String getKey()
public int getPort()
public boolean isExitVm()
public void setDebug(boolean flag)
public void setExitVm(boolean exitVm)
exitVm - true to exit the VM on shutdownpublic void setKey(java.lang.String key)
public void setPort(int port)
protected void start()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isAlive()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2018 Webtide. All rights reserved.