Class InfoCommand
- 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.InfoCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,DMRCommand
public class InfoCommand extends CommandWithPermissions implements DMRCommand
Display deployment info. 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 Modifier and Type Class Description static classInfoCommand.ServerGroupCompleter
-
Field Summary
Fields Modifier and Type Field Description StringdeploymentNameorg.jboss.dmr.ModelNodeheadersprotected booleanhelpDeprecated.StringserverGroup
-
Constructor Summary
Constructors Constructor Description InfoCommand(CommandContext ctx)Deprecated.InfoCommand(CommandContext ctx, Permissions permissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNodebuildRequest(CommandContext ctx)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)voidhandleResponse(CommandContext ctx, org.jboss.dmr.ModelNode response)-
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
-
help
@Deprecated protected boolean help
Deprecated.
-
deploymentName
public String deploymentName
-
headers
public org.jboss.dmr.ModelNode headers
-
serverGroup
public String serverGroup
-
-
Constructor Detail
-
InfoCommand
public InfoCommand(CommandContext ctx, Permissions permissions)
-
InfoCommand
@Deprecated public InfoCommand(CommandContext ctx)
Deprecated.
-
-
Method Detail
-
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
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext ctx) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
handleResponse
public void handleResponse(CommandContext ctx, org.jboss.dmr.ModelNode response) throws CommandFormatException
- Throws:
CommandFormatException
-
-