Package com.facebook.buck.util
Class ProcessExecutor.Result
- java.lang.Object
-
- com.facebook.buck.util.ProcessExecutor.Result
-
- Enclosing interface:
- ProcessExecutor
public static class ProcessExecutor.Result extends Object
Values from the result ofProcessExecutor.launchAndExecute(ProcessExecutorParams, Set, Optional, Optional, Optional)
.
-
-
Constructor Summary
Constructors Constructor Description Result(int exitCode, boolean timedOut, Optional<String> stdout, Optional<String> stderr, com.google.common.collect.ImmutableList<String> command)
Result(int exitCode, com.google.common.collect.ImmutableList<String> command)
Result(int exitCode, String stdout, String stderr, com.google.common.collect.ImmutableList<String> command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<String>
getCommand()
int
getExitCode()
String
getMessageForResult(String message)
String
getMessageForUnexpectedResult(String subject)
Optional<String>
getStderr()
Optional<String>
getStdout()
boolean
isTimedOut()
-
-
-
Field Detail
-
command
public final com.google.common.collect.ImmutableList<String> command
-
-
Constructor Detail
-
Result
public Result(int exitCode, boolean timedOut, Optional<String> stdout, Optional<String> stderr, com.google.common.collect.ImmutableList<String> command)
-
Result
public Result(int exitCode, String stdout, String stderr, com.google.common.collect.ImmutableList<String> command)
-
Result
public Result(int exitCode, com.google.common.collect.ImmutableList<String> command)
-
-
Method Detail
-
getExitCode
public int getExitCode()
-
isTimedOut
public boolean isTimedOut()
-
getCommand
public com.google.common.collect.ImmutableList<String> getCommand()
-
-