fr.inria.powerapi.core

Clock

class Clock extends Component with ClockConfiguration

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.

Linear Supertypes
ClockConfiguration, Configuration, Component, ActorLogging, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Clock
  2. ClockConfiguration
  3. Configuration
  4. Component
  5. ActorLogging
  6. Actor
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Clock ()

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def acquire : PartialFunction[Any, Unit]

    Akka's receive() wrapper.

    Akka's receive() wrapper.

    Definition Classes
    ClockComponent
    See also

    http://doc.akka.io/docs/akka/snapshot/scala/actors.html

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. implicit val context : ActorContext

    Attributes
    protected[akka] implicit
    Definition Classes
    Actor
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  14. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  16. def load [T] (request: (Config) ⇒ T, required: Boolean)(default: T): T

    Default pattern to get information from configuration file.

    Default pattern to get information from configuration file.

    Definition Classes
    Configuration
    See also

    http://typesafehub.github.com/config/latest/api/com/typesafe/config/ConfigException.html

  17. val log : LoggingAdapter

    Definition Classes
    ActorLogging
  18. def makeItTick (implicit tickIt: TickIt): Unit

  19. def messagesToListen : Array[java.lang.Class[_ <: fr.inria.powerapi.core.Message]]

    Defines what kind of Message this component wants to be aware from the common event bus.

    Defines what kind of Message this component wants to be aware from the common event bus.

    Definition Classes
    ClockComponent
  20. lazy val minimumTickDuration : Duration

    Definition Classes
    ClockConfiguration
  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def postRestart (reason: Throwable): Unit

    Definition Classes
    Actor
  25. def postStop (): Unit

    Definition Classes
    Actor
  26. def preRestart (reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
  27. def preStart (): Unit

    Definition Classes
    Actor
  28. def publish (message: Message): Unit

    Publishes the given message to the common event bus.

    Publishes the given message to the common event bus.

    Definition Classes
    Component
  29. def receive : Receive

    Definition Classes
    Component → Actor
  30. val schedulers : HashMap[Duration, Cancellable]

  31. implicit val self : ActorRef

    Attributes
    implicit final
    Definition Classes
    Actor
  32. def sender : ActorRef

    Attributes
    final
    Definition Classes
    Actor
  33. val subscriptions : HashMap[Duration, Set[TickSubscription]] with SynchronizedMap[Duration, Set[TickSubscription]]

  34. def supervisorStrategy (): SupervisorStrategy

    Definition Classes
    Actor
  35. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  36. def toString (): String

    Definition Classes
    AnyRef → Any
  37. def unhandled (message: Any): Unit

    Definition Classes
    Actor
  38. def unmakeItTick (implicit untickIt: UnTickIt): Unit

  39. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ClockConfiguration

Inherited from Configuration

Inherited from Component

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any