Class GracefulShutdownService

  • All Implemented Interfaces:
    org.jboss.msc.Service, org.jboss.msc.service.Service<GracefulShutdownService>, org.jboss.msc.value.Value<GracefulShutdownService>

    public class GracefulShutdownService
    extends Object
    implements org.jboss.msc.service.Service<GracefulShutdownService>
    A service that allows the server to wait until graceful shutdown is complete. This is mainly used to perform graceful shutdown in domain mode, to delay the System.exit() call until the server has suspended.
    Author:
    Stuart Douglas
    • Field Detail

      • SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName SERVICE_NAME
    • Constructor Detail

      • GracefulShutdownService

        public GracefulShutdownService()
    • Method Detail

      • start

        public void start​(org.jboss.msc.service.StartContext context)
                   throws org.jboss.msc.service.StartException
        Specified by:
        start in interface org.jboss.msc.Service
        Throws:
        org.jboss.msc.service.StartException
      • stop

        public void stop​(org.jboss.msc.service.StopContext context)
        Specified by:
        stop in interface org.jboss.msc.Service
      • startGracefulShutdown

        public void startGracefulShutdown()
      • awaitSuspend

        public void awaitSuspend()
      • getSuspendControllerInjectedValue

        public org.jboss.msc.value.InjectedValue<SuspendController> getSuspendControllerInjectedValue()