Class CLI.Result

  • Enclosing class:
    CLI

    public class CLI.Result
    extends Object
    The Result class provides all information about an executed CLI command.
    • 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 null if 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 null if 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:
        true if the command was successful, false otherwise.
      • isLocalCommand

        public boolean isLocalCommand()
        Return true if the command was only executed locally and did not result in a server-side operation.
        Returns:
        true if the command was only executed locally, false otherwise.