class
BlockingProcess extends Actor
Instance Constructors
-
new
BlockingProcess(args: Seq[String], environment: Map[String, String], receiver: ActorRef, detached: Boolean)
Type Members
-
type
Receive = PartialFunction[Any, Unit]
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
aroundPostRestart(reason: Throwable): Unit
-
def
aroundPostStop(): Unit
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
-
def
aroundPreStart(): Unit
-
def
aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
implicit
val
context: ActorContext
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
val
isWindows: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
def
needsQuoting(s: String): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
var
openStreams: Int
-
val
p: Process
-
val
pb: ProcessBuilder
-
def
postRestart(reason: Throwable): Unit
-
def
postStop(): Unit
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
-
def
preStart(): Unit
-
def
prepareArgs(args: Seq[String]): Seq[String]
-
def
receive: PartialFunction[Any, Unit]
-
implicit final
val
self: ActorRef
-
final
def
sender(): ActorRef
-
val
stderrSource: ActorRef
-
val
stdinSink: ActorRef
-
val
stdoutSource: ActorRef
-
def
supervisorStrategy: SupervisorStrategy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
unhandled(message: Any): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
winQuote(s: String): String
Inherited from Actor
Inherited from AnyRef
Inherited from Any
Process encapsulates an operating system process and its ability to be communicated with via stdio i.e. stdin, stdout and stderr. The sink for stdin and the sources for stdout and stderr are communicated in a Started event upon the actor being established. The receiving actor (passed in as a constructor arg) is then subsequently sent stdout and stderr events. When there are no more stdout or stderr events then the process's exit code is communicated to the receiver as an int value. The exit code will always be the last event communicated by the process unless the process is a detached one.
The actor is expected to be associated with a blocking dispatcher as various calls are made to input and output streams which can block.