case class NuProcessRichProcess(command: Seq[String], settings: Settings) extends RichProcess with LazyLogging with Product with Serializable
- Alphabetic
- By Inheritance
- NuProcessRichProcess
- Serializable
- Serializable
- Product
- Equals
- LazyLogging
- RichProcess
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
- class ProcessHandler extends NuAbstractProcessHandler with LazyLogging
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to any2stringadd[NuProcessRichProcess] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (NuProcessRichProcess, B)
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to ArrowAssoc[NuProcessRichProcess] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
command: Seq[String]
- Definition Classes
- NuProcessRichProcess → RichProcess
-
val
dequeReadAvailableOn: LinkedBlockingDeque[FromInputStream]
- Attributes
- protected
-
def
destroy(): Unit
Destroys the process if it's still alive.
Destroys the process if it's still alive.
- Definition Classes
- NuProcessRichProcess → RichProcess
-
def
ensuring(cond: (NuProcessRichProcess) ⇒ Boolean, msg: ⇒ Any): NuProcessRichProcess
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to Ensuring[NuProcessRichProcess] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (NuProcessRichProcess) ⇒ Boolean): NuProcessRichProcess
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to Ensuring[NuProcessRichProcess] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): NuProcessRichProcess
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to Ensuring[NuProcessRichProcess] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): NuProcessRichProcess
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to Ensuring[NuProcessRichProcess] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to StringFormat[NuProcessRichProcess] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
val
handler: ProcessHandler
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val process: NuProcess
-
def
queueOf(from: FromInputStream = StdOut): BlockingDeque[Either[EOFException, String]]
The corresponding queue for
from
.The corresponding queue for
from
.- from
which InputStream to get the queue of.
-
def
read(from: FromInputStream = StdOut)(implicit deadline: Deadline): String
Tries to read from the selected InputStream of the process.
Tries to read from the selected InputStream of the process. If no bytes are read within
deadline
aTimeoutException
will be thrown. If the end of file is reached anEOFException
is thrown. Otherwise, a String encoded withsettings.charset
is created from the read bytes.This method may block up until the deadline expires.
Only one read operation, read or readOnFirstInputStream, is performed at the same time. No concurrent reads will be made.
- returns
a String created from the read bytes encoded with
charset
.
- Definition Classes
- NuProcessRichProcess → RichProcess
-
def
readOnFirstInputStream()(implicit deadline: Deadline): (FromInputStream, String)
Tries to read from
StdOut
orStdErr
of the process, whichever has output to offer first.Tries to read from
StdOut
orStdErr
of the process, whichever has output to offer first. If no bytes are read withintimeout
aTimeoutException
will be thrown. If the end of file is reached anEOFException
is thrown. Otherwise, a String encoded withsettings.charset
is created from the read bytes.This method may block up until the deadline expires.
Only one read operation, read or readOnFirstInputStream, is performed at the same time. No concurrent reads will be made.
- returns
from which
InputStream
the output read from, and a String created from the read bytes encoded withcharset
.
- Definition Classes
- NuProcessRichProcess → RichProcess
-
val
settings: Settings
- Definition Classes
- NuProcessRichProcess → RichProcess
-
val
stdErrQueue: LinkedBlockingDeque[Either[EOFException, String]]
- Attributes
- protected
-
val
stdInQueue: LinkedBlockingDeque[String]
- Attributes
- protected
-
val
stdOutQueue: LinkedBlockingDeque[Either[EOFException, String]]
- Attributes
- protected
-
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( ... )
-
def
withCommand(command: Seq[String] = this.command): RichProcess
- Definition Classes
- NuProcessRichProcess → RichProcess
-
def
write(text: String): Unit
Writes to the
StdIn
of the process the bytes obtained from decodingtext
usingsettings.charset
.Writes to the
StdIn
of the process the bytes obtained from decodingtext
usingsettings.charset
.- text
the text to write to the
OutputStream
.
- Definition Classes
- NuProcessRichProcess → RichProcess
-
def
→[B](y: B): (NuProcessRichProcess, B)
- Implicit
- This member is added by an implicit conversion from NuProcessRichProcess to ArrowAssoc[NuProcessRichProcess] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc