Package org.jboss.as.server
Class GracefulShutdownService
- java.lang.Object
-
- org.jboss.as.server.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 Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAME
-
Constructor Summary
Constructors Constructor Description GracefulShutdownService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitSuspend()org.jboss.msc.value.InjectedValue<SuspendController>getSuspendControllerInjectedValue()GracefulShutdownServicegetValue()voidstart(org.jboss.msc.service.StartContext context)voidstartGracefulShutdown()voidstop(org.jboss.msc.service.StopContext context)
-
-
-
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
-
startGracefulShutdown
public void startGracefulShutdown()
-
awaitSuspend
public void awaitSuspend()
-
getSuspendControllerInjectedValue
public org.jboss.msc.value.InjectedValue<SuspendController> getSuspendControllerInjectedValue()
-
getValue
public GracefulShutdownService getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<GracefulShutdownService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-