Package adams.core.management
Class CommandResult
- java.lang.Object
-
- adams.core.management.CommandResult
-
- All Implemented Interfaces:
Serializable
public class CommandResult extends Object implements Serializable
Container class for storing command, exit code and stdout/stderr output.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandResult(String[] command, int exitCode)
Initializes the container.CommandResult(String[] command, int exitCode, String stdout, String stderr)
Initializes the container.
-
-
-
Constructor Detail
-
CommandResult
public CommandResult(String[] command, int exitCode)
Initializes the container.- Parameters:
command
- the command that was executedexitCode
- the exit code of the command
-
CommandResult
public CommandResult(String[] command, int exitCode, String stdout, String stderr)
Initializes the container.- Parameters:
command
- the command that was executedexitCode
- the exit code of the commandstdout
- the output on stdout, can be nullstderr
- the output on stderr, can be null
-
-