Class HttpShutdownService

java.lang.Object
org.jboss.as.server.mgmt.HttpShutdownService
All Implemented Interfaces:
org.jboss.msc.Service

public class HttpShutdownService extends Object implements org.jboss.msc.Service
Service preventing the http service from shutting down and closing the channels before the operation was able to complete. This is mainly important to be able to write the prepared response for lifecycle operations (:reload, :shutdown). In general this service needs to set up a service dependency on the management http server, so that it cannot shutdown until this service #stop() method completes. Beside active http requests this also waits for all other active management requests, since in case http-upgrade was used mgmt operations are now tracked using the ManagementChannelOpenListenerService.
Author:
Emanuel Muckenhuber, Richard Opalka
  • Constructor Details

  • Method Details

    • 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