ProcessWrapper

class ProcessWrapper(name: String, process: Process) extends ProcessorImpl[Int, Processor[Int]] with Processor[Int]
trait Processor[Int]
trait ProcessorImpl[Int, Processor[Int]]
trait ProcessorBase[Int, Processor[Int]]
trait FutureProxy[Int]
trait ModelImpl[Update[Int, Processor[Int]]]
trait Body
trait Prepared
trait ProcessorLike[Int, Processor[Int]]
trait Model[Update[Int, Processor[Int]]]
trait Future[Int]
trait Awaitable[Int]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String
Definition Classes
Any

Inherited methods

final def abort(): Unit
Inherited from
ProcessorBase
final def aborted: Boolean

Returns true if the abort method had been called.

Returns true if the abort method had been called.

Inherited from
ProcessorBase
def addListener(pf: Listener[Update[Int, Processor[Int]]]): pf
Inherited from
ModelImpl
def andThen[U](pf: PartialFunction[Try[Int], U])(executor: ExecutionContext): Future[Int]
Inherited from
Future
final protected def await[B](that: ProcessorLike[B, Any], target: Double): B
Inherited from
ProcessorImpl
final def checkAborted(): Unit

Checks if the process was aborted. If so, throws an Aborted exception. The main body should not try to catch this exception, which will be handled by the underlying infrastructure. However, the main body should put resource operations in proper try ... finally blocks, so that these resources are freed when Abort exception is thrown. Alternatively, the cleanUp method can be overridden to perform such tasks.

Checks if the process was aborted. If so, throws an Aborted exception. The main body should not try to catch this exception, which will be handled by the underlying infrastructure. However, the main body should put resource operations in proper try ... finally blocks, so that these resources are freed when Abort exception is thrown. Alternatively, the cleanUp method can be overridden to perform such tasks.

Inherited from
ProcessorBase
protected def cleanUp(): Unit

Subclasses may override this to perform further cleanup when the process is aborted.

Subclasses may override this to perform further cleanup when the process is aborted.

Inherited from
ProcessorImpl
def collect[S](pf: PartialFunction[Int, S])(executor: ExecutionContext): Future[S]
Inherited from
Future
final protected def dispatch(update: Update[Int, Processor[Int]]): Unit

Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.

Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.

Inherited from
ModelImpl
def failed: Future[Throwable]
Inherited from
Future
def fallbackTo[U >: Int](that: Future[U]): Future[U]
Inherited from
Future
def filter(p: Int => Boolean)(executor: ExecutionContext): Future[Int]
Inherited from
Future
def flatMap[S](f: Int => Future[S])(executor: ExecutionContext): Future[S]
Inherited from
Future
def flatten[S](ev: Int <:< Future[S]): Future[S]
Inherited from
Future
def foreach[U](f: Int => U)(executor: ExecutionContext): Unit
Inherited from
Future
def isCompleted: Boolean
Inherited from
FutureProxy
def map[S](f: Int => S)(executor: ExecutionContext): Future[S]
Inherited from
Future
def mapTo[S](tag: ClassTag[S]): Future[S]
Inherited from
Future
def onComplete[U](func: Try[Int] => U)(executor: ExecutionContext): Unit
Inherited from
FutureProxy
final protected def peerFuture: Future[Int]
Inherited from
ProcessorBase
final def progress: Double
Inherited from
ProcessorBase
final def progress_=(f: Double): Unit

Invoke this to signalize progress

Invoke this to signalize progress

Value Params
f

the processor's progress in percent (0 to 1). Values outside the 0 to 1 range will be clipped.

Inherited from
ProcessorBase
def ready(atMost: Duration)(permit: CanAwait): ProcessWrapper
Inherited from
FutureProxy
def recover[U >: Int](pf: PartialFunction[Throwable, U])(executor: ExecutionContext): Future[U]
Inherited from
Future
def recoverWith[U >: Int](pf: PartialFunction[Throwable, Future[U]])(executor: ExecutionContext): Future[U]
Inherited from
Future
protected def releaseListeners(): Unit

Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.

Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.

Inherited from
ModelImpl
def removeListener(pf: Listener[Update[Int, Processor[Int]]]): Unit
Inherited from
ModelImpl
def result(atMost: Duration)(permit: CanAwait): Int
Inherited from
FutureProxy
protected def runBody(): Future[Int]
Inherited from
ProcessorImpl
final def start(executionContext: ExecutionContext): Unit
Inherited from
ProcessorBase
protected def startListening(): Unit

Subclasses can override this to issue particular actions when the first listener has been registered

Subclasses can override this to issue particular actions when the first listener has been registered

Inherited from
ModelImpl
protected def stopListening(): Unit

Subclasses can override this to issue particular actions when the last listener has been unregistered

Subclasses can override this to issue particular actions when the last listener has been unregistered

Inherited from
ModelImpl
def transform[B](f: Try[Int] => Try[B])(executor: ExecutionContext): Future[B]
Inherited from
FutureProxy
def transform[S](s: Int => S, f: Throwable => Throwable)(executor: ExecutionContext): Future[S]
Inherited from
Future
def transformWith[B](f: Try[Int] => Future[B])(executor: ExecutionContext): Future[B]
Inherited from
FutureProxy
def value: Option[Try[Int]]
Inherited from
FutureProxy
final def withFilter(p: Int => Boolean)(executor: ExecutionContext): Future[Int]
Inherited from
Future
def zip[U](that: Future[U]): Future[(Int, U)]
Inherited from
Future
def zipWith[U, R](that: Future[U])(f: (Int, U) => R)(executor: ExecutionContext): Future[R]
Inherited from
Future

Inherited fields

final protected var child: ProcessorLike[Any, Any]
Inherited from
ProcessorBase
protected val progressResolution: Int

The resolution at which progress reports are dispatched. The default of 100 means that a Processor.Progress message is only dispatched if the progress has advanced by at least 1 percent. Higher values give finer granularity (sub classes may override this value).

The resolution at which progress reports are dispatched. The default of 100 means that a Processor.Progress message is only dispatched if the progress has advanced by at least 1 percent. Higher values give finer granularity (sub classes may override this value).

Inherited from
ProcessorBase
final protected val promise: Promise[Int]
Inherited from
ProcessorBase

Implicits

Inherited implicits

final implicit protected def executionContext: ExecutionContext

Keeps a record of the execution context used for starting this processor. You may use this to start intermediate sub processes. This method may only be used in the body method.

Keeps a record of the execution context used for starting this processor. You may use this to start intermediate sub processes. This method may only be used in the body method.

Inherited from
ProcessorBase