Class ActionRegistry
- java.lang.Object
-
- akka.actor.AbstractActor
-
- akka.persistence.AbstractPersistentActor
-
- org.opendaylight.controller.cluster.common.actor.AbstractUntypedPersistentActor
-
- org.opendaylight.controller.cluster.common.actor.AbstractUntypedPersistentActorWithMetering
-
- org.opendaylight.controller.remote.rpc.registry.gossip.BucketStoreActor<ActionRoutingTable>
-
- org.opendaylight.controller.remote.rpc.registry.ActionRegistry
-
- All Implemented Interfaces:
akka.actor.Actor
,akka.actor.Stash
,akka.actor.StashFactory
,akka.actor.StashSupport
,akka.actor.UnrestrictedStash
,akka.dispatch.RequiresMessageQueue<akka.dispatch.DequeBasedMessageQueueSemantics>
,akka.persistence.AbstractPersistentActorLike
,akka.persistence.Eventsourced
,akka.persistence.PersistenceIdentity
,akka.persistence.PersistenceRecovery
,akka.persistence.PersistenceStash
,akka.persistence.Snapshotter
,ExecuteInSelfActor
public class ActionRegistry extends BucketStoreActor<ActionRoutingTable>
Registry to look up cluster nodes that have registered for a given Action.It uses
BucketStoreActor
to maintain this cluster wide information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActionRegistry.Messages
All messages used by the ActionRegistry.static class
ActionRegistry.RemoteActionEndpoint
-
Nested classes/interfaces inherited from class akka.actor.AbstractActor
akka.actor.AbstractActor.ActorContext, akka.actor.AbstractActor.Receive
-
Nested classes/interfaces inherited from interface akka.actor.Actor
akka.actor.Actor.emptyBehavior$, akka.actor.Actor.ignoringBehavior$
-
Nested classes/interfaces inherited from interface akka.persistence.Eventsourced
akka.persistence.Eventsourced.AsyncHandlerInvocation, akka.persistence.Eventsourced.AsyncHandlerInvocation$, akka.persistence.Eventsourced.PendingHandlerInvocation, akka.persistence.Eventsourced.RecoveryTick, akka.persistence.Eventsourced.RecoveryTick$, akka.persistence.Eventsourced.StashingHandlerInvocation, akka.persistence.Eventsourced.StashingHandlerInvocation$
-
-
Field Summary
-
Fields inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedPersistentActor
LOG
-
-
Constructor Summary
Constructors Constructor Description ActionRegistry(RemoteOpsProviderConfig config, akka.actor.ActorRef rpcInvoker, akka.actor.ActorRef rpcRegistrar)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleCommand(Object message)
protected void
onBucketRemoved(akka.actor.Address address, Bucket<ActionRoutingTable> bucket)
Callback to subclasses invoked when a bucket is removed.protected void
onBucketsUpdated(Map<akka.actor.Address,Bucket<ActionRoutingTable>> buckets)
Callback to subclasses invoked when the set of remote buckets is updated.void
postStop()
void
preStart()
static akka.actor.Props
props(RemoteOpsProviderConfig config, akka.actor.ActorRef opsInvoker, akka.actor.ActorRef opsRegistrar)
Create a new props instance for instantiating an ActionRegistry actor.-
Methods inherited from class org.opendaylight.controller.remote.rpc.registry.gossip.BucketStoreActor
getConfig, getLocalData, getRemoteBuckets, getVersions, handleRecover, isPersisting, persistenceId, updateLocalBucket
-
Methods inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedPersistentActor
createReceive, createReceiveRecover, executeInSelf, ignoreMessage, unknownMessage
-
Methods inherited from class akka.persistence.AbstractPersistentActor
akka$actor$StashSupport$_setter_$akka$actor$StashSupport$$capacity_$eq, akka$actor$StashSupport$_setter_$mailbox_$eq, akka$actor$StashSupport$$capacity, akka$actor$StashSupport$$theStash, akka$actor$StashSupport$$theStash_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$extension_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$instanceId_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$internalStash_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$maxMessageBatchSize_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$pendingInvocations_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$persistingEvents_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$processingCommands_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$unstashFilterPredicate_$eq, akka$persistence$Eventsourced$_setter_$akka$persistence$Eventsourced$$writerUuid_$eq, akka$persistence$Eventsourced$$_lastSequenceNr, akka$persistence$Eventsourced$$_lastSequenceNr_$eq, akka$persistence$Eventsourced$$currentState, akka$persistence$Eventsourced$$currentState_$eq, akka$persistence$Eventsourced$$eventBatch, akka$persistence$Eventsourced$$eventBatch_$eq, akka$persistence$Eventsourced$$extension, akka$persistence$Eventsourced$$instanceId, akka$persistence$Eventsourced$$internalStash, akka$persistence$Eventsourced$$journalBatch, akka$persistence$Eventsourced$$journalBatch_$eq, akka$persistence$Eventsourced$$maxMessageBatchSize, akka$persistence$Eventsourced$$pendingInvocations, akka$persistence$Eventsourced$$pendingStashingPersistInvocations, akka$persistence$Eventsourced$$pendingStashingPersistInvocations_$eq, akka$persistence$Eventsourced$$persistingEvents, akka$persistence$Eventsourced$$processingCommands, akka$persistence$Eventsourced$$sequenceNr, akka$persistence$Eventsourced$$sequenceNr_$eq, akka$persistence$Eventsourced$$unstashFilterPredicate, akka$persistence$Eventsourced$$writeInProgress, akka$persistence$Eventsourced$$writeInProgress_$eq, akka$persistence$Eventsourced$$writerUuid, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, clearStash, createStash, defer, deferAsync, deleteMessages, deleteSnapshot, deleteSnapshots, internalDefer, internalDeferAsync, internalDeleteMessagesBeforeSnapshot, internalPersist, internalPersistAll, internalPersistAllAsync, internalPersistAsync, internalStashOverflowStrategy, journal, journalPluginId, lastSequenceNr, loadSnapshot, mailbox, onPersistFailure, onPersistRejected, onRecoveryFailure, onReplaySuccess, persist, persistAll, persistAllAsync, persistAsync, prepend, preRestart, receiveCommand, receiveRecover, recovery, recoveryFinished, recoveryRunning, saveSnapshot, snapshotPluginId, snapshotSequenceNr, snapshotStore, snapshotterId, stash, unhandled, unstash, unstashAll, unstashAll
-
Methods inherited from class akka.actor.AbstractActor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, context, emptyBehavior, getContext, getSelf, getSender, postRestart, preRestart, receive, receiveBuilder, self, sender, supervisorStrategy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.Actor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, context, postRestart, receive, self, sender, supervisorStrategy
-
Methods inherited from interface akka.persistence.Eventsourced
akka$persistence$Eventsourced$$changeState, akka$persistence$Eventsourced$$flushBatch, akka$persistence$Eventsourced$$flushJournalBatch, akka$persistence$Eventsourced$$log, akka$persistence$Eventsourced$$peekApplyHandler, akka$persistence$Eventsourced$$recovering, akka$persistence$Eventsourced$$setLastSequenceNr, akka$persistence$Eventsourced$$startRecovery, akka$persistence$Eventsourced$$stashInternally, akka$persistence$Eventsourced$$unstashInternally, akka$persistence$Eventsourced$$updateLastSequenceNr, akka$persistence$Eventsourced$$writeEventFailed, akka$persistence$Eventsourced$$writeEventRejected, akka$persistence$Eventsourced$$writeEventSucceeded
-
-
-
-
Constructor Detail
-
ActionRegistry
public ActionRegistry(RemoteOpsProviderConfig config, akka.actor.ActorRef rpcInvoker, akka.actor.ActorRef rpcRegistrar)
-
-
Method Detail
-
props
public static akka.actor.Props props(RemoteOpsProviderConfig config, akka.actor.ActorRef opsInvoker, akka.actor.ActorRef opsRegistrar)
Create a new props instance for instantiating an ActionRegistry actor.- Parameters:
config
- Provider configurationopsRegistrar
- Local RPC provider interface, used to register routers to remote nodesopsInvoker
- Actor handling RPC invocation requests from remote nodes- Returns:
- A new
Props
instance
-
preStart
public void preStart()
- Specified by:
preStart
in interfaceakka.actor.Actor
- Overrides:
preStart
in classBucketStoreActor<ActionRoutingTable>
-
postStop
public void postStop() throws Exception
- Specified by:
postStop
in interfaceakka.actor.Actor
- Specified by:
postStop
in interfaceakka.actor.UnrestrictedStash
- Overrides:
postStop
in classakka.persistence.AbstractPersistentActor
- Throws:
Exception
-
handleCommand
protected void handleCommand(Object message) throws Exception
- Overrides:
handleCommand
in classBucketStoreActor<ActionRoutingTable>
- Throws:
Exception
-
onBucketRemoved
protected void onBucketRemoved(akka.actor.Address address, Bucket<ActionRoutingTable> bucket)
Description copied from class:BucketStoreActor
Callback to subclasses invoked when a bucket is removed.- Specified by:
onBucketRemoved
in classBucketStoreActor<ActionRoutingTable>
- Parameters:
address
- Remote addressbucket
- Bucket removed
-
onBucketsUpdated
protected void onBucketsUpdated(Map<akka.actor.Address,Bucket<ActionRoutingTable>> buckets)
Description copied from class:BucketStoreActor
Callback to subclasses invoked when the set of remote buckets is updated.- Specified by:
onBucketsUpdated
in classBucketStoreActor<ActionRoutingTable>
- Parameters:
buckets
- Map of address to new bucket. Never null, but can be empty.
-
-