Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serverSocket

        private final java.net.ServerSocket serverSocket
    • Constructor Detail

      • ShutdownMonitorRunnable

        private ShutdownMonitorRunnable​(java.net.ServerSocket serverSocket)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.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)