Interface ICliCommandExecutor.ICommandResult

Enclosing interface:
ICliCommandExecutor

public static interface ICliCommandExecutor.ICommandResult
Command execution result and output.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the error output produces during the command execution.
    Returns the console output produces during the command execution.
    Returns command result.
  • Method Details

    • getResult

      Object getResult()
      Returns command result.

      Note the special treatment of IStatus: it is never returned as is. If a command returns it, and it's IStatus.isOK() is true, null is returned from this method. If the status is not OK, CliCommandException will be thrown from the ICliCommandExecutor.execute(String, InputStream, Map) method.

      Returns:
      command result. May be null.
    • getOutput

      String getOutput()
      Returns the console output produces during the command execution.
      Returns:
      the console output produces during the command execution. Never null.
    • getErrorOutput

      String getErrorOutput()
      Returns the error output produces during the command execution.
      Returns:
      the error output produces during the command execution. Never null.