Package org.eclipse.jetty.server
Class ShutdownMonitor.ShutdownMonitorRunnable
- java.lang.Object
-
- org.eclipse.jetty.server.ShutdownMonitor.ShutdownMonitorRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- ShutdownMonitor
private class ShutdownMonitor.ShutdownMonitorRunnable extends java.lang.Object implements java.lang.RunnableThread for listening to STOP.PORT for command to stop Jetty. If ShutdownMonitor.exitVm is true, then System.exit will also be called after the stop.
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.ServerSocketserverSocket
-
Constructor Summary
Constructors Modifier Constructor Description privateShutdownMonitorRunnable(java.net.ServerSocket serverSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidinformClient(java.io.OutputStream out, java.lang.String message)voidrun()private voidstopLifeCycles(java.util.function.Predicate<LifeCycle> predicate, boolean destroy)
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
informClient
private void informClient(java.io.OutputStream out, java.lang.String message) throws java.io.IOException- Throws:
java.io.IOException
-
stopLifeCycles
private void stopLifeCycles(java.util.function.Predicate<LifeCycle> predicate, boolean destroy)
-
-