Package org.jboss.as.server.mgmt
Class HttpShutdownService
java.lang.Object
org.jboss.as.server.mgmt.HttpShutdownService
- All Implemented Interfaces:
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
-
Field Summary
Fields inherited from interface org.jboss.msc.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionHttpShutdownService(Supplier<Executor> executorSupplier, Supplier<ManagementHttpRequestProcessor> processorSupplier, Supplier<ManagementChannelRegistryService> registrySupplier) -
Method Summary
-
Constructor Details
-
HttpShutdownService
public HttpShutdownService(Supplier<Executor> executorSupplier, Supplier<ManagementHttpRequestProcessor> processorSupplier, Supplier<ManagementChannelRegistryService> registrySupplier)
-
-
Method Details
-
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
-