public class Gossiper extends AbstractUntypedActorWithMetering
It keeps a local scheduler that periodically sends Gossip ticks to itself to send bucket store's bucket versions to a randomly selected remote gossiper.
When bucket versions are received from a remote gossiper, it is compared with bucket store's bucket versions. Which ever buckets are newer locally, are sent to remote gossiper. If any bucket is older in bucket store, a gossip status is sent to remote gossiper so that it can send the newer buckets.
When a bucket is received from a remote gossiper, its sent to the bucket store for update.
LOG
Modifier and Type | Method and Description |
---|---|
protected void |
handleReceive(Object message)
Receive and handle an incoming message.
|
void |
postStop() |
void |
preStart() |
static akka.actor.Props |
props(RemoteRpcProviderConfig config) |
getActorNameOverride
executeInSelf, ignoreMessage, isValidSender, onReceive, unknownMessage
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, getContext, getSelf, getSender, postRestart, preRestart, receive, self, sender, supervisorStrategy, unhandled
public static akka.actor.Props props(RemoteRpcProviderConfig config)
public void preStart()
preStart
in interface akka.actor.Actor
preStart
in class akka.actor.UntypedActor
public void postStop()
postStop
in interface akka.actor.Actor
postStop
in class akka.actor.UntypedActor
protected void handleReceive(Object message)
AbstractUntypedActor
AbstractUntypedActor.ignoreMessage(Object)
or AbstractUntypedActor.unknownMessage(Object)
.handleReceive
in class AbstractUntypedActor
message
- the incoming messageCopyright © 2019 OpenDaylight. All rights reserved.