server.actors

Storemanager

class Storemanager extends ReplyActor

A Storemanager manages data stored in RAM

Linear Supertypes
ReplyActor, ActorLogging, ClusterAwareActor, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Storemanager
  2. ReplyActor
  3. ActorLogging
  4. ClusterAwareActor
  5. Actor
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Storemanager(map: ConcurrentHashMap[String, Array[Byte]], index: (String, String), storemanagerType: StoremanagerType, ninjas: Array[ActorRef] = null)

    map

    the data to manage

    index

    the index of data

    storemanagerType

    the behaviour of the storemanager

    ninjas

    the ninjas of the storemanager

Type Members

  1. class Child extends AnyRef

    Class that represents a child of a storemanager.

  2. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  9. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  10. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. var clusterListener: ActorRef

    Definition Classes
    ClusterAwareActor
  14. implicit val context: ActorContext

    Definition Classes
    Actor
  15. def currentMethodName(): String

    Return the name of the current running method.

    Return the name of the current running method.

    returns

    The name of the method that call this.

    Definition Classes
    ReplyActor
  16. implicit val ec: ExecutionContextExecutor

    Definition Classes
    ClusterAwareActor
  17. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  22. val index: (String, String)

    the index of data

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. var leftChild: Child

  25. def log: LoggingAdapter

    Definition Classes
    ActorLogging
  26. def logAndReply(reply: ReplyMessage, sender: ActorRef = sender): Unit

    Logs the operation represent by the ReplyMessage message and sends the ReplyMessage to the sender.

    Logs the operation represent by the ReplyMessage message and sends the ReplyMessage to the sender.

    reply

    The ReplyMessage message that represent the reply to a request.

    sender

    The sender's reference of the request.

    Definition Classes
    ReplyActor
    See also

    #writeLog(ReplyMessage)

    #reply(ReplyMessage, ActorRef)

  27. var map: ConcurrentHashMap[String, Array[Byte]]

    the data to manage

  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def nextAddress: Address

    Returns an address of one node in the cluster.

    Returns an address of one node in the cluster. This method sends a message to the ClusterListener of the same node of this actor so it will stop the thread of this actor while waiting for a response.

    returns

    the address of type akka.actor.Address.

    Definition Classes
    ClusterAwareActor
  30. val ninjas: Array[ActorRef]

    the ninjas of the storemanager

  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def postRestart(reason: Throwable): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  34. def postStop(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  35. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  36. def preStart(): Unit

    Override of the actor's preStart method.

    Override of the actor's preStart method. Changes the actor's behaviour based on the constructor.

    Definition Classes
    Storemanager → Actor
    See also

    #become(Actor.receive)

  37. def receive: PartialFunction[Any, Unit]

    Processes all incoming messages behaving like a Storekeeper actor.

    Processes all incoming messages behaving like a Storekeeper actor. It handles only RowMessage messages

    Definition Classes
    Storemanager → Actor
    See also

    #handleRowMessageAsStorefinder(RowMessage)

  38. def reply(reply: ReplyMessage, sender: ActorRef = sender): Unit

    Send the ReplyMessage message to the sender.

    Send the ReplyMessage message to the sender.

    reply

    The ReplyMessage message that represent the reply to a request.

    sender

    The sender's reference of the request.

    Definition Classes
    ReplyActor
  39. val replyBuilder: ReplyBuilder

    Definition Classes
    ReplyActor
  40. var rightChild: Child

  41. implicit final val self: ActorRef

    Definition Classes
    Actor
  42. final def sender(): ActorRef

    Definition Classes
    Actor
  43. val storemanagerType: StoremanagerType

    the behaviour of the storemanager

  44. def supervisorStrategy: SupervisorStrategy

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

    Definition Classes
    AnyRef
  46. implicit val timeout: Timeout

    Definition Classes
    ClusterAwareActor
  47. def toString(): String

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

    Definition Classes
    Actor
  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def writeLog(reply: ReplyMessage): Unit

    Logs the operation represent by the ReplyMessage using the ReplyBuilder class.

    Logs the operation represent by the ReplyMessage using the ReplyBuilder class.

    reply

    The ReplyMessage message that represent the reply to a request.

    Definition Classes
    ReplyActor
    See also

    ReplyBuilder

Inherited from ReplyActor

Inherited from ActorLogging

Inherited from ClusterAwareActor

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped