case class CommandOutput(stdout: Reader[Buf], stderr: Reader[Buf]) extends Product with Serializable
The output of a shell command.
- stdout
A com.twitter.io.Reader representing what is written to stdout by the shell command. Each Buf is a line of output from the command. If the command exits with a non zero return code, the final Reader#read() will return a failed com.twitter.util.Future with a NonZeroReturnCode exception. If the shell command completes successfully the final read will return a None
- stderr
A Reader with the stderr from the shell command. The final read on stderr will always return a None, even if the command exited with a nonzero return code.
- Alphabetic
- By Inheritance
- CommandOutput
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CommandOutput(stdout: Reader[Buf], stderr: Reader[Buf])
- stdout
A com.twitter.io.Reader representing what is written to stdout by the shell command. Each Buf is a line of output from the command. If the command exits with a non zero return code, the final Reader#read() will return a failed com.twitter.util.Future with a NonZeroReturnCode exception. If the shell command completes successfully the final read will return a None
- stderr
A Reader with the stderr from the shell command. The final read on stderr will always return a None, even if the command exited with a nonzero return code.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val stderr: Reader[Buf]
- val stdout: Reader[Buf]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()