Package org.jboss.as.cli.scriptsupport
Class CLI.Result
- java.lang.Object
-
- org.jboss.as.cli.scriptsupport.CLI.Result
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCliCommand()Return the original command as a String.org.jboss.dmr.ModelNodegetRequest()If the command resulted in a server-side operation, return the ModelNode representation of the operation.org.jboss.dmr.ModelNodegetResponse()If the command resulted in a server-side operation, return the ModelNode representation of the response.booleanisLocalCommand()Return true if the command was only executed locally and did not result in a server-side operation.booleanisSuccess()Return true if the command was successful.
-
-
-
Method Detail
-
getCliCommand
public String getCliCommand()
Return the original command as a String.- Returns:
- The original CLI command.
-
getRequest
public org.jboss.dmr.ModelNode getRequest()
If the command resulted in a server-side operation, return the ModelNode representation of the operation.- Returns:
- The request as a ModelNode, or
nullif this was a local command.
-
getResponse
public org.jboss.dmr.ModelNode getResponse()
If the command resulted in a server-side operation, return the ModelNode representation of the response.- Returns:
- The server response as a ModelNode, or
nullif this was a local command.
-
isSuccess
public boolean isSuccess()
Return true if the command was successful. For a server-side operation, this is determined by the outcome of the operation on the server side.- Returns:
trueif the command was successful,falseotherwise.
-
isLocalCommand
public boolean isLocalCommand()
Return true if the command was only executed locally and did not result in a server-side operation.- Returns:
trueif the command was only executed locally,falseotherwise.
-
-