public class ShutdownHandler extends BaseOperationCommand
accessRequirement, headers, params, requiredAddress
helpArg
Constructor and Description |
---|
ShutdownHandler(CommandContext ctx,
AtomicReference<EmbeddedProcessLaunch> embeddedServerRef) |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.dmr.ModelNode |
buildRequestWithoutHeaders(CommandContext ctx) |
protected void |
doHandle(CommandContext ctx) |
boolean |
isAvailable(CommandContext ctx)
Checks whether the command is available in the current context
(e.g.
|
protected boolean |
isLocalHost(ModelControllerClient client,
String host) |
protected void |
setBooleanArgument(ParsedCommandLine args,
org.jboss.dmr.ModelNode op,
ArgumentWithValue arg,
String paramName) |
protected AccessRequirement |
setupAccessRequirement(CommandContext ctx) |
addArgument, addHeaders, addRequiredPath, addRequiredPath, buildRequest, buildRequestWOValidation, cliEvent, displayResponseHeaders, getRequiredAddress, getRequiredType, handleAttachedFile, handleResponse, handleResponse, isAddressValid, isDependsOnProfile, setParams
handle, isBatchMode, printHelp, printList
getArgument, getArguments, hasArgument, hasArgument, recognizeArguments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgument, getArguments, handle, hasArgument, hasArgument, isBatchMode
public ShutdownHandler(CommandContext ctx, AtomicReference<EmbeddedProcessLaunch> embeddedServerRef)
protected AccessRequirement setupAccessRequirement(CommandContext ctx)
setupAccessRequirement
in class BaseOperationCommand
public boolean isAvailable(CommandContext ctx)
CommandHandler
isAvailable
in interface CommandHandler
isAvailable
in class BaseOperationCommand
ctx
- current contextprotected void doHandle(CommandContext ctx) throws CommandLineException
doHandle
in class BaseOperationCommand
CommandLineException
protected org.jboss.dmr.ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException
buildRequestWithoutHeaders
in class BaseOperationCommand
CommandFormatException
protected boolean isLocalHost(ModelControllerClient client, String host) throws CommandLineException
CommandLineException
protected void setBooleanArgument(ParsedCommandLine args, org.jboss.dmr.ModelNode op, ArgumentWithValue arg, String paramName) throws CommandFormatException
CommandFormatException
Copyright © 2023 JBoss by Red Hat. All rights reserved.