Class WindowsRemoteCommandResult
java.lang.Object
org.metricshub.wmi.windows.remote.WindowsRemoteCommandResult
-
Constructor Summary
ConstructorsConstructorDescriptionWindowsRemoteCommandResult
(String stdout, String stderr, float executionTime, int statusCode) Command Result constructor -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the execution time of the command in seconds.int
Get the return status code of the commandGet the stderr of the command.Get the stdout of the command.toString()
-
Constructor Details
-
WindowsRemoteCommandResult
public WindowsRemoteCommandResult(String stdout, String stderr, float executionTime, int statusCode) Command Result constructor- Parameters:
stdout
- The stdout of the commandstderr
- The stderr of the commandexecutionTime
- The execution time of the command in millisecondsstatusCode
- The command return status code
-
-
Method Details
-
getStdout
Get the stdout of the command.- Returns:
-
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
-