Package

com.adendamedia.cornucopia

actors

Permalink

package actors

Visibility
  1. Public
  2. All

Type Members

  1. class ClusterConnections extends Actor with ActorLogging

    Permalink
  2. class ClusterConnectionsSupervisor extends Actor with ActorLogging

    Permalink
  3. class ClusterReady extends Actor with ActorLogging

    Permalink
  4. class ClusterReadySupervisor[C <: WaitForClusterToBeReady] extends CornucopiaSupervisor[WaitForClusterToBeReady]

    Permalink
  5. class ClusterTopology extends Actor with ActorLogging

    Permalink
  6. class ClusterTopologySupervisor[C <: OverseerCommand] extends CornucopiaSupervisor[OverseerCommand]

    Permalink
  7. class ComputeReshardTable extends Actor with ActorLogging

    Permalink
  8. trait CornucopiaSupervisor[C <: OverseerCommand] extends Actor with ActorLogging

    Permalink

    Behaviour that the top-level actor of a processing stage must implement

  9. class Dispatcher extends Actor with ActorLogging

    Permalink
  10. class Failover extends Actor with ActorLogging

    Permalink
  11. class FailoverSupervisor[C <: FailoverCommand] extends CornucopiaSupervisor[FailoverCommand]

    Permalink
  12. class FailoverWorker extends Actor with ActorLogging

    Permalink
  13. class FindPoorestMaster extends Actor with ActorLogging

    Permalink
  14. class ForgetRedisNode extends Actor with ActorLogging

    Permalink
  15. class ForgetRedisNodeSupervisor[C <: ForgetNode] extends CornucopiaSupervisor[ForgetNode]

    Permalink
  16. class Gatekeeper extends Actor with ActorLogging

    Permalink

    Processes raw Redis commands and forwards them to the Dispatcher if they are valid.

    Processes raw Redis commands and forwards them to the Dispatcher if they are valid. If the commands are invalid, sends a TaskDenied response back to client ActorRef.

  17. class GetRedisSourceNodes extends Actor with ActorLogging

    Permalink
  18. class GetRole extends Actor with ActorLogging

    Permalink
  19. class GetSlavesOfMaster extends Actor with ActorLogging

    Permalink
  20. class GetSlavesOfMasterSupervisor[C <: GetSlavesOf] extends CornucopiaSupervisor[GetSlavesOf]

    Permalink
  21. class JoinRedisNode extends Actor with ActorLogging

    Permalink
  22. class JoinRedisNodeDelegate extends Actor with ActorLogging

    Permalink

    Delegate to perform the actual adding of the node to the redis cluster.

    Delegate to perform the actual adding of the node to the redis cluster. If the adding of a node to the cluster is a success, then send Passthrough message to sender. If the adding of a node fails due to a Redis connection error, then send a Fail message to sender

  23. class JoinRedisNodeSupervisor[C <: JoinNode] extends CornucopiaSupervisor[JoinNode]

    Permalink

    The supervisor actor for the join redis node action is used to signal a failed attempt to join a node by throwing an exception.

  24. class Lifecycle extends Actor with ActorLogging

    Permalink

    This actor exists to be the parent of the overseer.

  25. class MigrateSlotKeysWorker extends Actor with ActorLogging

    Permalink
  26. class MigrateSlotWorker extends Actor with ActorLogging

    Permalink
  27. class MigrateSlotsJobManager extends Actor with ActorLogging

    Permalink

    Implements the work-pulling pattern to rate-limit the migrate slot operations

  28. class MigrateSlotsSupervisor[C <: MigrateSlotsCommand] extends CornucopiaSupervisor[MigrateSlotsCommand]

    Permalink

    Actor hierarchy for doing the actual work during a reshard, which is to migrate slots between Redis nodes.

  29. class NotifySlotAssignmentWorker extends Actor with ActorLogging

    Permalink
  30. class Overseer extends Actor with ActorLogging

    Permalink

    The overseer subscribes to Redis commands that have been published by the dispatcher.

    The overseer subscribes to Redis commands that have been published by the dispatcher. This actor is the parent actor of all actors that process Redis cluster commands. Cluster commands include adding and removing nodes.

  31. class ReplicatePoorestMaster extends Actor with ActorLogging

    Permalink
  32. class ReplicatePoorestMasterSupervisor[C <: ReplicatePoorestMasterCommand] extends CornucopiaSupervisor[ReplicatePoorestMasterCommand]

    Permalink
  33. class ReshardClusterSupervisor extends Actor with ActorLogging

    Permalink

    Supervises the resharding of the cluster

  34. class SetSlotAssignmentWorker extends Actor with ActorLogging

    Permalink
  35. class ValidateClusterConnections extends Actor with ActorLogging

    Permalink
  36. class VerifyFailover extends Actor with ActorLogging

    Permalink

Value Members

  1. object ClusterConnections

    Permalink
  2. object ClusterConnectionsSupervisor

    Permalink
  3. object ClusterReady

    Permalink
  4. object ClusterReadySupervisor

    Permalink
  5. object ClusterTopology

    Permalink
  6. object ClusterTopologySupervisor

    Permalink
  7. object ComputeReshardTable

    Permalink
  8. object Dispatcher

    Permalink

    The dispatcher publishes redis cluster commands to be performed, and waits for them to be completed.

    The dispatcher publishes redis cluster commands to be performed, and waits for them to be completed. The dispatcher subscribes to events on the message bus indicating when an operation has completed successfully or unsuccessfully. The dispatcher is completely decoupled from the actor hierarchy performing Redis cluster operations. The dispatcher can process a Redis command one at a time. When processing a Redis command, it uses become to change its state to running. When the dispatcher is running it will no longer accept other Redis cluster commands to publish. When it receives a success message on the message bus, the dispatcher will change its state back to accepting, and it will message the client ActorRef of the success.

  9. object Failover

    Permalink
  10. object FailoverSupervisor

    Permalink

    When removing a redis node, it is necessary to specify whether a master or slave node should be removed, and the URI of the node that should be removed.

    When removing a redis node, it is necessary to specify whether a master or slave node should be removed, and the URI of the node that should be removed. In some cases, if it's requested to remove a master node at a given URI, the redis cluster node at that given URI is not a master. The same is the case when removing a slave node. In those cases, it is necessary to run a FAILOVER command on the slave node that should become the master node. Once the failover is complete, the redis node at the given URI now has the desired role--master or slave, and it can then be removed.

  11. object FailoverWorker

    Permalink
  12. object FindPoorestMaster

    Permalink
  13. object ForgetRedisNode

    Permalink
  14. object ForgetRedisNodeSupervisor

    Permalink
  15. object Gatekeeper

    Permalink
  16. object GetRedisSourceNodes

    Permalink
  17. object GetRole

    Permalink
  18. object GetSlavesOfMaster

    Permalink
  19. object GetSlavesOfMasterSupervisor

    Permalink
  20. object JoinRedisNode

    Permalink
  21. object JoinRedisNodeDelegate

    Permalink
  22. object JoinRedisNodeSupervisor

    Permalink
  23. object Lifecycle

    Permalink
  24. object MessageBus

    Permalink

    The message bus interface.

    The message bus interface. This contains all the case class messages that can be published to and subscribed to on the message bus.

  25. object MigrateSlotKeysWorker

    Permalink
  26. object MigrateSlotWorker

    Permalink
  27. object MigrateSlotsJobManager

    Permalink
  28. object MigrateSlotsSupervisor

    Permalink
  29. object NotifySlotAssignmentWorker

    Permalink
  30. object Overseer

    Permalink
  31. object ReplicatePoorestMaster

    Permalink
  32. object ReplicatePoorestMasterSupervisor

    Permalink
  33. object ReshardClusterSupervisor

    Permalink
  34. object SetSlotAssignmentWorker

    Permalink
  35. object SharedActorSystem

    Permalink
  36. object ValidateClusterConnections

    Permalink
  37. object VerifyFailover

    Permalink

Ungrouped