Overriding of the ClusterListener's method that is needed to receive ClusterListenerMessages.
Overriding of the ClusterListener's method that is needed to receive ClusterListenerMessages. This method forwards all the messages to all the assistants.
the message received of type ClusterListenerMessage.
Overriding of the ClusterListener's method that is invoked when a member of the cluster is removed.
Overriding of the ClusterListener's method that is invoked when a member of the cluster is removed. This method removes the assistant of the removed node from the map.
address of the node
Overriding of the ClusterListener's method that is invoked when a member joins the cluster and is moved to up.
Overriding of the ClusterListener's method that is invoked when a member joins the cluster and is moved to up. This method deploys an assistant on the new node and saves his reference. Then the assistant is initialized with the notifyNewAssistant method.
address of the node.
Overriding of the postStop method of Actor.
Overriding of the postStop method of Actor. When he is stopped he unsubscribes itself from cluster.
Overriding of the preStart method of Actor.
Overriding of the preStart method of Actor. When created this actor subscribes itself to cluster. It also adds the address of his node to his list.
Receive method of the actor.
Receive method of the actor. This method receives gossip from cluster and the string "next". A "next" message is a request for an address given by nextAddress method. The messages from the cluster is used to keep updated the list of node addresses and the number of nodes.
Overriding of the ClusterListener's method that is invoked when a member of the cluster becomes unreachable.
Overriding of the ClusterListener's method that is invoked when a member of the cluster becomes unreachable. This method removes the assistant of the unreachable node from the map.
address of the node
SettingsManager is an actor that keeps the StaticSettings equal in all nodes of the cluster. To do that he deploys a RemoteAssistant in every node of the cluster ad keeps their references. Once a static setting is changed he is notified thanks to a ClusterListenerMessage and he forward it to all his assistants.