Package org.terracotta.utilities.exec
Class Shell.Result
java.lang.Object
org.terracotta.utilities.exec.Shell.Result
- Enclosing class:
- Shell
The
Shell.execute(Charset, String...) command execution result.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
commandLines
-
exitCode
private final int exitCode
-
-
Constructor Details
-
Result
-
-
Method Details
-
exitCode
public int exitCode()Gets the process exit code.- Returns:
- the process exit code
-
lines
Gets the list holding the captured stdout/stderr lines.- Returns:
- an unmodifiable list of the captured output lines
-
iterator
Gets an iterator over the captured stdout/stderr lines.
-