Package org.jboss.as.server.operations
Class ServerDomainProcessShutdownHandler
java.lang.Object
org.jboss.as.server.operations.ServerDomainProcessShutdownHandler
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final SimpleOperationDefinitionstatic final AtomicReference<CompletionStage<Void>> -
Constructor Summary
ConstructorsConstructorDescriptionServerDomainProcessShutdownHandler(ServerSuspendController suspendController) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(OperationContext context, org.jboss.dmr.ModelNode operation)
-
Field Details
-
SUSPEND_STAGE
-
DOMAIN_DEFINITION
-
-
Constructor Details
-
ServerDomainProcessShutdownHandler
-
-
Method Details
-
execute
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException - Specified by:
executein interfaceOperationStepHandler- Throws:
OperationFailedException
-