class ScalaAgent extends ScalaInternalAgentTemplate

Pushes random numbers to given O-DF path at given interval. Can be used in testing or as a base for other agents. Extends ScalaInternalAgentTemplate that implements some basic functionality.

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaAgent
  2. ScalaInternalAgentTemplate
  3. ScalaInternalAgent
  4. ActorLogging
  5. InternalAgent
  6. Actor
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaAgent(config: Config, requestHandler: ActorRef, dbHandler: ActorRef)

    config

    Contains configuration for this agent, as given in application.conf.

    requestHandler

    ActorRef to RequestHandler Actor, that sends request for this agent to handle.

    dbHandler

    ActorRef to DBHandler Actor that handles all request to DB.

Type Members

  1. type Receive = PartialFunction[Any, Unit]
    Definition Classes
    Actor
  2. case class Update() extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ScalaAgent to any2stringadd[ScalaAgent] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ScalaAgent, B)
    Implicit
    This member is added by an implicit conversion from ScalaAgent to ArrowAssoc[ScalaAgent] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def agentSystem: ActorRef
    Definition Classes
    ScalaInternalAgent
  7. def aroundPostRestart(reason: Throwable): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  8. def aroundPostStop(): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  10. def aroundPreStart(): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  11. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. val config: Config
  15. implicit val context: ActorContext
    Definition Classes
    Actor
  16. def currentTimestamp: Timestamp
  17. val dbHandler: ActorRef
    Attributes
    protected
    Definition Classes
    ScalaInternalAgentTemplateScalaInternalAgent
  18. def ensuring(cond: (ScalaAgent) ⇒ Boolean, msg: ⇒ Any): ScalaAgent
    Implicit
    This member is added by an implicit conversion from ScalaAgent to Ensuring[ScalaAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: (ScalaAgent) ⇒ Boolean): ScalaAgent
    Implicit
    This member is added by an implicit conversion from ScalaAgent to Ensuring[ScalaAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean, msg: ⇒ Any): ScalaAgent
    Implicit
    This member is added by an implicit conversion from ScalaAgent to Ensuring[ScalaAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean): ScalaAgent
    Implicit
    This member is added by an implicit conversion from ScalaAgent to Ensuring[ScalaAgent] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ScalaAgent to StringFormat[ScalaAgent] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. val interval: FiniteDuration
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def log: LoggingAdapter
    Definition Classes
    ActorLogging
  31. final def name: String
    Definition Classes
    ScalaInternalAgent
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def newValueStr: String
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. val path: Path
  37. def postRestart(reason: Throwable): Unit
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  38. def postStop(): Unit

    Method to be called when Agent is stopped.

    Method to be called when Agent is stopped. This should gracefully stop all activities that the agent is doing.

    Definition Classes
    ScalaAgent → Actor
  39. def preRestart(reason: Throwable, message: Option[Any]): Unit
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  40. def preStart(): Unit
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  41. final def readFromDB(read: ReadRequest): Future[ResponseRequest]
    Definition Classes
    ScalaInternalAgent
  42. def receive: akka.actor.Actor.Receive

    Method that is inherited from akka.actor.Actor and handles incoming messages from other Actors.

    Method that is inherited from akka.actor.Actor and handles incoming messages from other Actors.

    Definition Classes
    ScalaAgent → Actor
  43. final def requestFromDB(request: OdfRequest): Future[ResponseRequest]
    Definition Classes
    ScalaInternalAgent
  44. final def requestFromNode(request: OdfRequest): Future[ResponseRequest]
    Definition Classes
    ScalaInternalAgent
  45. val requestHandler: ActorRef
    Attributes
    protected
    Definition Classes
    ScalaInternalAgentTemplateScalaInternalAgent
  46. final def respond(msg: Any): Unit
    Definition Classes
    ScalaInternalAgent
  47. final def respondFuture(msgFuture: Future[Any]): Unit
    Definition Classes
    ScalaInternalAgent
  48. val rnd: Random
  49. implicit final val self: ActorRef
    Definition Classes
    Actor
  50. final def sender(): ActorRef
    Definition Classes
    Actor
  51. def supervisorStrategy: SupervisorStrategy
    Definition Classes
    Actor
  52. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  53. def toString(): String
    Definition Classes
    AnyRef → Any
  54. def unhandled(message: Any): Unit
    Definition Classes
    Actor
  55. def update(): Unit

    Method to be called when a Update() message is received.

    Method to be called when a Update() message is received. Made specifically for this agent to be used with the Akka scheduler. Updates values in target path.

  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  59. final def writeToDB(write: WriteRequest): Future[ResponseRequest]
    Definition Classes
    ScalaInternalAgent
  60. final def writeToNode(write: WriteRequest): Future[ResponseRequest]
    Definition Classes
    ScalaInternalAgent
  61. def [B](y: B): (ScalaAgent, B)
    Implicit
    This member is added by an implicit conversion from ScalaAgent to ArrowAssoc[ScalaAgent] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ScalaInternalAgent

Inherited from ActorLogging

Inherited from InternalAgent

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ScalaAgent to any2stringadd[ScalaAgent]

Inherited by implicit conversion StringFormat from ScalaAgent to StringFormat[ScalaAgent]

Inherited by implicit conversion Ensuring from ScalaAgent to Ensuring[ScalaAgent]

Inherited by implicit conversion ArrowAssoc from ScalaAgent to ArrowAssoc[ScalaAgent]

Ungrouped