server.actors

Main

class Main extends ReplyActor

Actor that executes the messages from the client. It processes database-level queries and admin-level queries by itself, all other queries are sent to the right actor. It's the only actor that interacts with the Usermanger actor, every reply it's sent to it.

See also

Server

UserPermission

Linear Supertypes
ReplyActor, ActorLogging, ClusterAwareActor, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Main
  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 Main(perms: HashMap[String, UserPermission] = null)

    Create a new Main actor instance from a ConcurrentHashMap and a ServerDependencyInjector.

Type Members

  1. 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 helper: Helper

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def log: LoggingAdapter

    Definition Classes
    ActorLogging
  25. 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)

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

    Definition Classes
    AnyRef
  27. 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
  28. final def notify(): Unit

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

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

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

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

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

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  34. def receive: PartialFunction[Any, Unit]

    Processes all incoming messages.

    Processes all incoming messages. It handles only QueryMessage messages.

    Definition Classes
    Main → Actor
    See also

    #handleQueryMessage(QueryMessage)

    QueryMessage

  35. 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
  36. val replyBuilder: ReplyBuilder

    Definition Classes
    ReplyActor
  37. var selectedDatabase: String

  38. var selectedMap: String

  39. implicit final val self: ActorRef

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

    Definition Classes
    Actor
  41. def supervisorStrategy: SupervisorStrategy

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

    Definition Classes
    AnyRef
  43. implicit val timeout: Timeout

    Definition Classes
    ClusterAwareActor
  44. def toString(): String

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. 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