gopher

Transputer

trait Transputer extends AnyRef

Reusable unit of application structure, which consists from set of input ports, set of output ports and behaviour

Transputers can be created as elementary behaviour, descibed by select statement and then can be combined into larger structures

Transputers can be recovered from execeptions (i.e. transputer can be restarted or resume execution) or escalated to parent transputers or root superviser.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Transputer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class InPort[A] extends Input[A]

  2. class OutPort[A] extends Output[A]

Abstract Value Members

  1. abstract def api: GopherAPI

  2. abstract def goOnce: Future[Unit]

  3. abstract def recoverFactory: () ⇒ Transputer

    Used for recover failed instances

  4. abstract def stop(): Unit

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(p: Transputer): ParTransputer

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. object InPort

  6. object OutPort

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def copyPorts(prev: Transputer): Unit

    copy conection from previous instance when transputer is restarted.

  10. def copyState(prev: Transputer): Unit

    copyState from previous instance when transputer is restarted.

    copyState from previous instance when transputer is restarted. can be overriden in subclasses (by default: do nothing)

    Note, that port connection is restored before call of copyState

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def failureLimit(maxFailures: Int = recoveryLimits.maxFailures, windowDuration: Duration = recoveryLimits.windowDuration): Transputer.this.type

    set failure limit.

    set failure limit. (when number of failures during windowsDuration is bigger than maxFailures, TooManyFailures exception is escalated to parent transputer.

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. implicit def logSource: LogSource[Transputer]

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def onEscalatedFailure(ex: Throwable): Unit

    called when failure is escalated.

    called when failure is escalated.

    Attributes
    protected
  23. def onRestart(prev: Transputer): Unit

    called when transducer is restarted.

    called when transducer is restarted.

    prev

    - previous (i.e. failed) instance of trnasputer.

    Attributes
    protected
  24. def onResume(): Unit

    called when transducer is choose resume durign recovery.

    called when transducer is choose resume durign recovery.

    Attributes
    protected
  25. def onStart(): Unit

    called when transducer is started.

    called when transducer is started.

    Attributes
    protected
  26. def onStop(): Unit

    called when transputer is stopped.

    called when transputer is stopped.

    Attributes
    protected
  27. def recover(f: PartialFunction[Throwable, Directive]): Transputer.this.type

    set recover function

  28. def recoverAppend(f: PartialFunction[Throwable, Directive]): Transputer.this.type

    append recover function to existing

  29. def replica: Int

    return replica number of current instance, if transponder run replicated.

    return replica number of current instance, if transponder run replicated.

    Attributes
    protected
  30. def start(): Future[Unit]

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped