Class ShutdownMonitor


  • @Deprecated(since="2021-05-27")
    public class ShutdownMonitor
    extends Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Shutdown/Stop Monitor thread.

    This thread listens on the host/port specified by the STOP.HOST/STOP.PORT system parameter (defaults to 127.0.0.1/-1 for not listening) for request authenticated with the key given by the STOP.KEY system parameter 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.

    • Method Detail

      • register

        public static void register​(LifeCycle... lifeCycles)
        Deprecated.
      • deregister

        public static void deregister​(LifeCycle lifeCycle)
        Deprecated.
      • isRegistered

        public static boolean isRegistered​(LifeCycle lifeCycle)
        Deprecated.
      • getKey

        public String getKey()
        Deprecated.
      • getPort

        public int getPort()
        Deprecated.
      • isExitVm

        public boolean isExitVm()
        Deprecated.
      • setDebug

        public void setDebug​(boolean flag)
        Deprecated.
      • setExitVm

        public void setExitVm​(boolean exitVm)
        Deprecated.
        Parameters:
        exitVm - true to exit the VM on shutdown
      • setKey

        public void setKey​(String key)
        Deprecated.
      • setPort

        public void setPort​(int port)
        Deprecated.