Packages

c

gopher.transputers

ReplicatedTransputer

abstract class ReplicatedTransputer[T <: Transputer, Self] extends ParTransputer

Replicated[X] is transputer which keep n instances of X where ports of replicated consumer are connected to appropriative ports of instances in parallel.

Self Type
ReplicatedTransputer[T, Self] with Self
See also

gopher.GopherAPI#replicate

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedTransputer
  2. ParTransputer
  3. Transputer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ReplicatedTransputer(api: GopherAPI, n: Int)

Type Members

  1. class InPort[A] extends Input[A]
    Definition Classes
    Transputer
  2. class OutPort[A] extends Output[A]
    Definition Classes
    Transputer
  3. class InPortWithAdapter[A] extends (ReplicatedTransputer.this)#InPort[A]
  4. class OutPortWithAdapter[A] extends (ReplicatedTransputer.this)#OutPort[A]
  5. class SelectorRunner extends SelectTransputer

Abstract Value Members

  1. abstract def init(): Unit
  2. abstract def replicatePorts(): IndexedSeq[(ForeverSelectorBuilder) => Unit]
    Attributes
    protected

Concrete Value Members

  1. object InPort
    Definition Classes
    Transputer
  2. object OutPort
    Definition Classes
    Transputer
  3. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def ##: Int
    Definition Classes
    AnyRef → Any
  5. def +(p: Transputer): ParTransputer
    Definition Classes
    ParTransputerTransputer
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. val api: GopherAPI
    Definition Classes
    ParTransputerTransputer
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. var childs: Seq[Transputer]
    Definition Classes
    ParTransputer
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def copyPorts(prev: Transputer): Unit

    copy conection from previous instance when transputer is restarted.

    copy conection from previous instance when transputer is restarted.

    Definition Classes
    Transputer
  12. 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

    Definition Classes
    Transputer
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def failureLimit(maxFailures: Int = recoveryLimits.maxFailures, windowDuration: Duration = recoveryLimits.windowDuration): ReplicatedTransputer.this

    set failure limit.

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

    Definition Classes
    Transputer
  16. final def formChilds(selectorFuns: IndexedSeq[(ForeverSelectorBuilder) => Unit]): Unit
    Attributes
    protected
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def goOnce: Future[Unit]
    Definition Classes
    ParTransputerTransputer
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. implicit def logSource: LogSource[Transputer]
    Definition Classes
    Transputer
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def onEscalatedFailure(ex: Throwable): Unit

    called when failure is escalated.

    called when failure is escalated.

    Attributes
    protected
    Definition Classes
    Transputer
  26. def onRestart(prev: Transputer): Unit

    called when transducer is restarted.

    called when transducer is restarted.

    prev

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

    Definition Classes
    ReplicatedTransputerTransputer
  27. def onResume(): Unit

    called when transducer is choose to resume durign recovery.

    called when transducer is choose to resume durign recovery.

    Attributes
    protected
    Definition Classes
    Transputer
  28. def onStart(): Unit

    called when transducer is started.

    called when transducer is started.

    Definition Classes
    ReplicatedTransputerTransputer
  29. def onStop(): Unit

    called when transputer is stopped.

    called when transputer is stopped.

    Attributes
    protected
    Definition Classes
    Transputer
  30. def recover(f: PartialFunction[Throwable, Directive]): ReplicatedTransputer.this

    set recover function

    set recover function

    Definition Classes
    Transputer
  31. def recoverAppend(f: PartialFunction[Throwable, Directive]): ReplicatedTransputer.this

    append recover function to existing

    append recover function to existing

    Definition Classes
    Transputer
  32. def recoverFactory: () => Transputer

    Used for recover failed instances

    Used for recover failed instances

    Definition Classes
    ParTransputerTransputer
  33. 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
    Definition Classes
    Transputer
  34. def replicated: Seq[T]
  35. var replicatedInstances: Seq[T]
    Attributes
    protected
  36. def start(): Future[Unit]
    Definition Classes
    Transputer
  37. def stop(): Unit
    Definition Classes
    ParTransputerTransputer
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ParTransputer

Inherited from Transputer

Inherited from AnyRef

Inherited from Any

Ungrouped