Class AbstractUndeployCommand
- 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.AbstractUndeployCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,LegacyBridge,BatchCompliantCommand,DMRCommand
- Direct Known Subclasses:
DisableAllCommand,UndeployCommand
public abstract class AbstractUndeployCommand extends CommandWithPermissions implements org.aesh.command.Command<CLICommandInvocation>, BatchCompliantCommand, LegacyBridge
Base class for deployment undeploy commands (disable and undeploy). 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
-
-
Field Summary
Fields Modifier and Type Field Description booleanallRelevantServerGroupsorg.jboss.dmr.ModelNodeheadersStringserverGroups
-
Constructor Summary
Constructors Constructor Description AbstractUndeployCommand(CommandContext ctx, Permissions permissions)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BatchCompliantCommand.BatchResponseHandlerbuildBatchResponseHandler(CommandContext commandContext, Attachments attachments)org.jboss.dmr.ModelNodebuildRequest(CommandContext context)org.aesh.command.CommandResultexecute(CommandContext ctx)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)protected abstract StringgetCommandName()protected abstract StringgetName()protected abstract booleankeepContent()-
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
-
serverGroups
public String serverGroups
-
allRelevantServerGroups
public boolean allRelevantServerGroups
-
headers
public org.jboss.dmr.ModelNode headers
-
-
Constructor Detail
-
AbstractUndeployCommand
public AbstractUndeployCommand(CommandContext ctx, Permissions permissions)
-
-
Method Detail
-
keepContent
protected abstract boolean keepContent()
-
getName
protected abstract String getName()
-
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
-
buildBatchResponseHandler
public BatchCompliantCommand.BatchResponseHandler buildBatchResponseHandler(CommandContext commandContext, Attachments attachments)
- Specified by:
buildBatchResponseHandlerin interfaceBatchCompliantCommand
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
-