public class ShutdownMonitor
extends java.lang.Thread
This thread listens on the port specified by the STOP.PORT system parameter (defaults to -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 and Description |
|---|---|
static ShutdownMonitor |
getInstance() |
java.lang.String |
getKey() |
int |
getPort() |
java.net.ServerSocket |
getServerSocket() |
boolean |
isExitVm() |
void |
run() |
void |
setDebug(boolean flag) |
void |
setExitVm(boolean exitVm) |
void |
setKey(java.lang.String key) |
void |
setPort(int port) |
void |
start() |
java.lang.String |
toString() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, yieldpublic static ShutdownMonitor getInstance()
public java.lang.String getKey()
public int getPort()
public java.net.ServerSocket getServerSocket()
public boolean isExitVm()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setDebug(boolean flag)
public void setExitVm(boolean exitVm)
public void setKey(java.lang.String key)
public void setPort(int port)
public void start()
start in class java.lang.Threadpublic java.lang.String toString()
toString in class java.lang.ThreadCopyright © 2013 FuseSource, Corp.. All Rights Reserved.