Trait/Object

gopher

Transputer

Related Docs: object Transputer | package gopher

Permalink

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
Visibility
  1. Public
  2. All

Type Members

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

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

    Permalink

Abstract Value Members

  1. abstract def api: GopherAPI

    Permalink
  2. abstract def goOnce: Future[Unit]

    Permalink
  3. abstract def recoverFactory: () ⇒ Transputer

    Permalink

    Used for recover failed instances

  4. abstract def stop(): Unit

    Permalink

Concrete Value Members

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. object InPort

    Permalink
  6. object OutPort

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink

    copy conection from previous instance when transputer is restarted.

  10. def copyState(prev: Transputer): Unit

    Permalink

    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

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

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

    Permalink

    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

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

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

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

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

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

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

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

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

    Permalink

    called when failure is escalated.

    called when failure is escalated.

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

    Permalink

    called when transducer is restarted.

    called when transducer is restarted.

    prev

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

    Attributes
    protected
  24. def onResume(): Unit

    Permalink

    called when transducer is choose to resume durign recovery.

    called when transducer is choose to resume durign recovery.

    Attributes
    protected
  25. def onStart(): Unit

    Permalink

    called when transducer is started.

    called when transducer is started.

    Attributes
    protected
  26. def onStop(): Unit

    Permalink

    called when transputer is stopped.

    called when transputer is stopped.

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

    Permalink

    set recover function

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

    Permalink

    append recover function to existing

  29. def replica: Int

    Permalink

    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]

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

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped