Package org.jboss.as.cli.handlers
Class BatchModeCommandHandler
- java.lang.Object
-
- org.jboss.as.cli.handlers.CommandHandlerWithArguments
-
- org.jboss.as.cli.handlers.CommandHandlerWithHelp
-
- org.jboss.as.cli.handlers.BaseOperationCommand
-
- org.jboss.as.cli.handlers.BatchModeCommandHandler
-
- All Implemented Interfaces:
CliEventListener,CommandHandler,OperationCommand
- Direct Known Subclasses:
ArchiveHandler,AttachmentHandler,DeploymentHandler,DeploymentOverlayHandler,GenericTypeOperationHandler
public abstract class BatchModeCommandHandler extends BaseOperationCommand
- Author:
- Alexey Loubyansky
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.cli.OperationCommand
OperationCommand.HandledRequest
-
-
Field Summary
-
Fields inherited from class org.jboss.as.cli.handlers.BaseOperationCommand
accessRequirement, headers, params, requiredAddress
-
Fields inherited from class org.jboss.as.cli.handlers.CommandHandlerWithHelp
helpArg
-
-
Constructor Summary
Constructors Constructor Description BatchModeCommandHandler(CommandContext ctx, String command, boolean connectionRequired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBatchMode(CommandContext ctx)Whether the command supports batch mode or not.-
Methods inherited from class org.jboss.as.cli.handlers.BaseOperationCommand
addArgument, addHeaders, addRequiredPath, addRequiredPath, buildRequest, buildRequestWithoutHeaders, buildRequestWOValidation, cliEvent, displayResponseHeaders, doHandle, getAttachments, getRequiredAddress, getRequiredType, handleAttachedFile, handleResponse, handleResponse, isAddressValid, isAvailable, isDependsOnProfile, setParams, setupAccessRequirement
-
Methods inherited from class org.jboss.as.cli.handlers.CommandHandlerWithHelp
displayHelp, handle, printHelp, printList
-
Methods inherited from class org.jboss.as.cli.handlers.CommandHandlerWithArguments
getArgument, getArguments, getArgumentsMap, hasArgument, hasArgument, recognizeArguments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.cli.CommandHandler
getArgument, getArguments, handle, hasArgument, hasArgument
-
Methods inherited from interface org.jboss.as.cli.OperationCommand
buildHandledRequest, buildRequest
-
-
-
-
Constructor Detail
-
BatchModeCommandHandler
public BatchModeCommandHandler(CommandContext ctx, String command, boolean connectionRequired)
-
-
Method Detail
-
isBatchMode
public boolean isBatchMode(CommandContext ctx)
Description copied from interface:CommandHandlerWhether the command supports batch mode or not. The result could depend on the context, e.g. it won't make sense to add 'some_command --help' to a batch.- Specified by:
isBatchModein interfaceCommandHandler- Overrides:
isBatchModein classCommandHandlerWithHelp- Parameters:
ctx- the current context- Returns:
- true if the command can be added to the batch, otherwise - false.
-
-