Class ProcessOutput
java.lang.Object
com.suse.coco.module.snpguest.execution.ProcessOutput
Represent the output of the execution of a process
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessOutput(int exitCodeIn) Builds an instance with only the exit codeProcessOutput(int exitCodeIn, String standardOutputIn, String standardErrorIn) Default constructor -
Method Summary
-
Field Details
-
exitCode
private final int exitCode -
standardOutput
-
standardError
-
-
Constructor Details
-
ProcessOutput
Default constructor- Parameters:
exitCodeIn- process exit codestandardOutputIn- the standard outputstandardErrorIn- the standard error
-
ProcessOutput
public ProcessOutput(int exitCodeIn) Builds an instance with only the exit code- Parameters:
exitCodeIn- process exit code
-
-
Method Details
-
getExitCode
public int getExitCode() -
hasStandardOutput
public boolean hasStandardOutput()Check if this process output has a non-empty standard output- Returns:
- true if the standard output is not null and not blank
-
getStandardOutput
-
hasStandardError
public boolean hasStandardError()Check if this process output has a non-empty standard error- Returns:
- true if the standard error is not null and not blank
-
getStandardError
-
equals
-
hashCode
public int hashCode() -
toString
-