Package org.jboss.as.server.operations
Class ServerDomainProcessShutdownHandler
- java.lang.Object
-
- org.jboss.as.server.operations.ServerDomainProcessShutdownHandler
-
- All Implemented Interfaces:
OperationStepHandler
public class ServerDomainProcessShutdownHandler extends Object implements OperationStepHandler
Handler that starts a graceful shutdown in domain mode. Note that this does not actually shut down the server, it merely starts the suspend process. The server is shut down by the process controller closing the STDIN stream, which then waits for this process to be complete.- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleOperationDefinitionDOMAIN_DEFINITIONstatic AtomicReference<CompletionStage<Void>>SUSPEND_STAGE
-
Constructor Summary
Constructors Constructor Description ServerDomainProcessShutdownHandler(ServerSuspendController suspendController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(OperationContext context, org.jboss.dmr.ModelNode operation)
-
-
-
Field Detail
-
SUSPEND_STAGE
public static final AtomicReference<CompletionStage<Void>> SUSPEND_STAGE
-
DOMAIN_DEFINITION
public static final SimpleOperationDefinition DOMAIN_DEFINITION
-
-
Constructor Detail
-
ServerDomainProcessShutdownHandler
public ServerDomainProcessShutdownHandler(ServerSuspendController suspendController)
-
-
Method Detail
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
- Specified by:
executein interfaceOperationStepHandler- Throws:
OperationFailedException
-
-