Instance Constructors
-
new
Clock
()
Type Members
-
type
Receive
= PartialFunction[Any, Unit]
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
acquire
: PartialFunction[Any, Unit]
-
def
asInstanceOf
[T0]
: T0
-
def
clone
(): AnyRef
-
implicit val
context
: ActorContext
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
load
[T]
(request: (Config) ⇒ T, required: Boolean)(default: T): T
-
val
log
: LoggingAdapter
-
def
makeItTick
(implicit tickIt: TickIt): Unit
-
def
messagesToListen
: Array[java.lang.Class[_ <: fr.inria.powerapi.core.Message]]
-
lazy val
minimumTickDuration
: Duration
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
postRestart
(reason: Throwable): Unit
-
def
postStop
(): Unit
-
def
preRestart
(reason: Throwable, message: Option[Any]): Unit
-
def
preStart
(): Unit
-
def
publish
(message: Message): Unit
-
def
receive
: Receive
-
val
schedulers
: HashMap[Duration, Cancellable]
-
implicit val
self
: ActorRef
-
def
sender
: ActorRef
-
val
subscriptions
: HashMap[Duration, Set[TickSubscription]] with SynchronizedMap[Duration, Set[TickSubscription]]
-
def
supervisorStrategy
(): SupervisorStrategy
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
unhandled
(message: Any): Unit
-
def
unmakeItTick
(implicit untickIt: UnTickIt): Unit
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from ActorLogging
Inherited from Actor
Inherited from AnyRef
Inherited from Any
Clock component, that "tick" the event bus following a configured period.
The PowerAPI architecture is based on a asynchronous architecture composed by several components. Each component listen to an event bus and reacts following messages sent by the event bus. Thus, each component is in a passive state and only run its business part following the sent message.
At the bottom of this architecture, the Clock component provides a "tick" message to wake up components which are listen to it.
Clock component reacts to both TickIt and UnTickIt messages which respectively ask to start/stop a periodically sending of a Tick message.