Class DeployArchiveCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.AbstractControlledCommand
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.security.CommandWithPermissions
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.DeployArchiveCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,LegacyBridge,BatchCompliantCommand,DMRCommand
- Direct Known Subclasses:
UndeployArchiveCommand
public class DeployArchiveCommand extends CommandWithPermissions implements org.aesh.command.Command<CLICommandInvocation>, BatchCompliantCommand, LegacyBridge
Deploy using a CLI archive file (.cli file). All fields are public to be accessible from legacy commands. To be made private when legacies are removed.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.wildfly.core.cli.command.BatchCompliantCommand
BatchCompliantCommand.BatchResponseHandler
-
-
Constructor Summary
Constructors Constructor Description DeployArchiveCommand(CommandContext ctx)Deprecated.DeployArchiveCommand(CommandContext ctx, Permissions permissions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchCompliantCommand.BatchResponseHandlerbuildBatchResponseHandler(CommandContext commandContext, Attachments attachments)org.jboss.dmr.ModelNodebuildRequest(CommandContext context)org.jboss.dmr.ModelNodebuildRequest(CommandContext context, Attachments attachments)null attachments means that the command is in a batch, non null means command executed.org.aesh.command.CommandResultexecute(CommandContext ctx)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)protected StringgetAction()protected StringgetDefaultScript()static booleanisCliArchive(File f)-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.security.CommandWithPermissions
getPermissions
-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.security.AbstractControlledCommand
addRequiredPath, addRequiredPath, getAccessRequirement, getCommandContext, getRequiredAddress, getRequiredType, isDependsOnProfile
-
-
-
-
Constructor Detail
-
DeployArchiveCommand
public DeployArchiveCommand(CommandContext ctx, Permissions permissions)
-
DeployArchiveCommand
@Deprecated public DeployArchiveCommand(CommandContext ctx)
Deprecated.
-
-
Method Detail
-
getAction
protected String getAction()
-
getDefaultScript
protected String getDefaultScript()
-
execute
public org.aesh.command.CommandResult execute(CLICommandInvocation commandInvocation) throws org.aesh.command.CommandException, InterruptedException
- Specified by:
executein interfaceorg.aesh.command.Command<CLICommandInvocation>- Throws:
org.aesh.command.CommandExceptionInterruptedException
-
execute
public org.aesh.command.CommandResult execute(CommandContext ctx) throws org.aesh.command.CommandException
- Specified by:
executein interfaceLegacyBridge- Throws:
org.aesh.command.CommandException
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context, Attachments attachments) throws CommandFormatException
null attachments means that the command is in a batch, non null means command executed. Inside a batch, the attachments must be added to the existing batch and NOT to the temporary batch created to build the composite request. Outside of a batch, the attachments MUST be added to the passed non null attachments.- Specified by:
buildRequestin interfaceDMRCommand- Parameters:
context-attachments-- Returns:
- Throws:
CommandFormatException
-
isCliArchive
public static boolean isCliArchive(File f)
-
buildBatchResponseHandler
public BatchCompliantCommand.BatchResponseHandler buildBatchResponseHandler(CommandContext commandContext, Attachments attachments)
- Specified by:
buildBatchResponseHandlerin interfaceBatchCompliantCommand
-
-