Class WindowsRemoteCommandResult

java.lang.Object
org.metricshub.wmi.windows.remote.WindowsRemoteCommandResult

public class WindowsRemoteCommandResult extends Object
  • Constructor Details

    • WindowsRemoteCommandResult

      public WindowsRemoteCommandResult(String stdout, String stderr, float executionTime, int statusCode)
      Command Result constructor
      Parameters:
      stdout - The stdout of the command
      stderr - The stderr of the command
      executionTime - The execution time of the command in milliseconds
      statusCode - The command return status code
  • Method Details

    • getStdout

      public String getStdout()
      Get the stdout of the command.
      Returns:
    • getStderr

      public String getStderr()
      Get the stderr of the command.
      Returns:
    • getExecutionTime

      public float getExecutionTime()
      Get the execution time of the command in seconds.
      Returns:
    • getStatusCode

      public int getStatusCode()
      Get the return status code of the command
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object