Class SshClient.CommandResult

java.lang.Object
org.sentrysoftware.ssh.SshClient.CommandResult
Enclosing class:
SshClient

public static class SshClient.CommandResult extends Object
Represents the result of a command execution
Author:
bertrand
  • Field Details

    • success

      public boolean success
      Whether the command was successful or not
    • executionTime

      public float executionTime
      How much time was taken by the execution itself (not counting the connection time), in seconds
    • exitStatus

      public Integer exitStatus
      The exit code (status) returned by the command (process return code). null if unsupported by the remote platform.
    • result

      public String result
      The result of the command (stdout and stderr is merged into result)
  • Constructor Details

    • CommandResult

      public CommandResult()