Package org.jboss.as.server.mgmt
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 Summary
Constructors Constructor Description HttpShutdownService(Supplier<Executor> executorSupplier, Supplier<ManagementHttpRequestProcessor> processorSupplier, Supplier<ManagementChannelRegistryService> registrySupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
HttpShutdownService
public HttpShutdownService(Supplier<Executor> executorSupplier, Supplier<ManagementHttpRequestProcessor> processorSupplier, Supplier<ManagementChannelRegistryService> registrySupplier)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
-