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.Runnable
Thread 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.ServerSocket
serverSocket
-
Constructor Summary
Constructors Modifier Constructor Description private
ShutdownMonitorRunnable(java.net.ServerSocket serverSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
informClient(java.io.OutputStream out, java.lang.String message)
void
run()
private void
stopLifeCycles(java.util.function.Predicate<LifeCycle> predicate, boolean destroy)
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in 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)
-
-