Class AbstractDeployContentCommand
- 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.AbstractDeployCommand
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployContentCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,LegacyBridge,BatchCompliantCommand,DMRCommand
- Direct Known Subclasses:
DeployFileCommand,DeployUrlCommand
public abstract class AbstractDeployContentCommand extends AbstractDeployCommand implements LegacyBridge
Base class for deployment commands that deplkoy some content (URL or 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 class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
AbstractDeployCommand.ServerGroupsCompleter
-
Nested classes/interfaces inherited from interface org.wildfly.core.cli.command.BatchCompliantCommand
BatchCompliantCommand.BatchResponseHandler
-
-
Field Summary
Fields Modifier and Type Field Description booleandisabledbooleanenabledbooleanreplaceStringruntimeName-
Fields inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
allServerGroups, headers, serverGroups
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddContent(CommandContext ctx, org.jboss.dmr.ModelNode content)protected org.jboss.dmr.ModelNodebuildDeploymentRequest(CommandContext ctx, String op)org.jboss.dmr.ModelNodebuildRequest(CommandContext context)protected abstract voidcheckArgument()protected org.jboss.dmr.ModelNodecreateExtraStep(CommandContext ctx)org.aesh.command.CommandResultexecute(CommandContext ctx)protected abstract org.jboss.dmr.ModelNodeexecute(CommandContext ctx, org.jboss.dmr.ModelNode request)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)protected abstract StringgetCommandName()protected abstract StringgetName()protected List<String>getServerGroups(CommandContext ctx)-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
buildBatchResponseHandler
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.core.cli.command.DMRCommand
buildRequest
-
-
-
-
Field Detail
-
replace
public boolean replace
-
disabled
public boolean disabled
-
enabled
public boolean enabled
-
runtimeName
public String runtimeName
-
-
Method Detail
-
checkArgument
protected abstract void checkArgument() throws org.aesh.command.CommandException- Throws:
org.aesh.command.CommandException
-
getCommandName
protected abstract String getCommandName()
-
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
-
execute
protected abstract org.jboss.dmr.ModelNode execute(CommandContext ctx, org.jboss.dmr.ModelNode request) throws IOException
- Throws:
IOException
-
buildDeploymentRequest
protected org.jboss.dmr.ModelNode buildDeploymentRequest(CommandContext ctx, String op) throws OperationFormatException
- Throws:
OperationFormatException
-
addContent
protected abstract void addContent(CommandContext ctx, org.jboss.dmr.ModelNode content) throws OperationFormatException
- Throws:
OperationFormatException
-
getName
protected abstract String getName()
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
getServerGroups
protected List<String> getServerGroups(CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
createExtraStep
protected org.jboss.dmr.ModelNode createExtraStep(CommandContext ctx) throws CommandFormatException
- Throws:
CommandFormatException
-
-