Package org.jboss.as.cli.handlers
Class DeploymentHandler
-
- All Implemented Interfaces:
CliEventListener,CommandHandler,OperationCommand
- Direct Known Subclasses:
DeployHandler,UndeployHandler
public abstract class DeploymentHandler extends BatchModeCommandHandler
Base class for deploy and undeploy handlers containing common code for these handlers.- 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 DeploymentHandler(CommandContext ctx, String command, boolean connectionRequired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringactivateNewBatch(CommandContext ctx)protected org.jboss.dmr.ModelNodebuildReadDeploymentResourceRequest(String name)protected voiddiscardBatch(CommandContext ctx, String holdbackBatch)protected org.jboss.vfs.spi.MountHandleextractArchive(File archive, org.jboss.vfs.TempFileProvider tempFileProvider)protected org.jboss.dmr.ModelNodegetDeploymentDescriptions(CommandContext ctx, List<String> names)protected booleanisCliArchive(File f)protected voidlistDeployments(CommandContext ctx, boolean l)-
Methods inherited from class org.jboss.as.cli.handlers.BatchModeCommandHandler
isBatchMode
-
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
-
DeploymentHandler
public DeploymentHandler(CommandContext ctx, String command, boolean connectionRequired)
-
-
Method Detail
-
listDeployments
protected void listDeployments(CommandContext ctx, boolean l) throws CommandFormatException
- Throws:
CommandFormatException
-
getDeploymentDescriptions
protected org.jboss.dmr.ModelNode getDeploymentDescriptions(CommandContext ctx, List<String> names) throws CommandFormatException
- Throws:
CommandFormatException
-
buildReadDeploymentResourceRequest
protected org.jboss.dmr.ModelNode buildReadDeploymentResourceRequest(String name)
-
extractArchive
protected org.jboss.vfs.spi.MountHandle extractArchive(File archive, org.jboss.vfs.TempFileProvider tempFileProvider) throws IOException
- Throws:
IOException
-
activateNewBatch
protected String activateNewBatch(CommandContext ctx)
-
discardBatch
protected void discardBatch(CommandContext ctx, String holdbackBatch)
-
isCliArchive
protected boolean isCliArchive(File f)
-
-