org.eclipse.jetty.server
类 ShutdownMonitor

java.lang.Object
  继承者 org.eclipse.jetty.server.ShutdownMonitor

public class ShutdownMonitor
extends Object

Shutdown/Stop Monitor 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.


嵌套类摘要
 class ShutdownMonitor.ShutdownMonitorThread
          ShutdownMonitorThread Thread for listening to STOP.PORT for command to stop Jetty.
 
方法摘要
static ShutdownMonitor getInstance()
           
 String getKey()
           
 int getPort()
           
 ServerSocket getServerSocket()
           
protected  boolean isAlive()
           
 boolean isExitVm()
           
 void setDebug(boolean flag)
           
 void setExitVm(boolean exitVm)
           
 void setKey(String key)
           
 void setPort(int port)
           
protected  void start()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

方法详细信息

getInstance

public static ShutdownMonitor getInstance()

getKey

public String getKey()

getPort

public int getPort()

getServerSocket

public ServerSocket getServerSocket()

isExitVm

public boolean isExitVm()

setDebug

public void setDebug(boolean flag)

setExitVm

public void setExitVm(boolean exitVm)

setKey

public void setKey(String key)

setPort

public void setPort(int port)

start

protected void start()
              throws Exception
抛出:
Exception

isAlive

protected boolean isAlive()

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.