Class ShardTransaction
java.lang.Object
akka.actor.AbstractActor
org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
org.opendaylight.controller.cluster.common.actor.AbstractUntypedActorWithMetering
org.opendaylight.controller.cluster.datastore.ShardTransaction
- All Implemented Interfaces:
Actor
,ExecuteInSelfActor
- Direct Known Subclasses:
ShardReadTransaction
,ShardWriteTransaction
The ShardTransaction Actor represents a remote transaction that delegates all actions to DOMDataReadWriteTransaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class akka.actor.AbstractActor
AbstractActor.ActorContext, AbstractActor.Receive
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
Field Summary
Fields inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
LOG
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ShardTransaction
(ActorRef shardActor, org.opendaylight.controller.cluster.datastore.ShardStats shardStats, TransactionIdentifier transactionId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dataExists
(org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, DataExists message) protected abstract org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?>
protected ActorRef
protected final TransactionIdentifier
void
handleReceive
(Object message) Receive and handle an incoming message.static Props
props
(TransactionType type, org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, ActorRef shardActor, DatastoreContext datastoreContext, org.opendaylight.controller.cluster.datastore.ShardStats shardStats) protected void
readData
(org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, ReadData message) protected boolean
Methods inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActorWithMetering
getActorNameOverride
Methods inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
createReceive, executeInSelf, ignoreMessage, isValidSender, unknownMessage
Methods inherited from class akka.actor.AbstractActor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, emptyBehavior, getContext, getSelf, getSender, postRestart, postStop, preRestart, preRestart, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
-
Constructor Details
-
ShardTransaction
protected ShardTransaction(ActorRef shardActor, org.opendaylight.controller.cluster.datastore.ShardStats shardStats, TransactionIdentifier transactionId)
-
-
Method Details
-
props
public static Props props(TransactionType type, org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, ActorRef shardActor, DatastoreContext datastoreContext, org.opendaylight.controller.cluster.datastore.ShardStats shardStats) -
getDOMStoreTransaction
protected abstract org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> getDOMStoreTransaction() -
getShardActor
-
getTransactionId
-
handleReceive
Description copied from class:AbstractUntypedActor
Receive and handle an incoming message. If the implementation does not handle this particular message, it should callAbstractUntypedActor.ignoreMessage(Object)
orAbstractUntypedActor.unknownMessage(Object)
.- Specified by:
handleReceive
in classAbstractUntypedActor
- Parameters:
message
- the incoming message
-
returnCloseTransactionReply
protected boolean returnCloseTransactionReply() -
readData
protected void readData(org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, ReadData message) -
dataExists
protected void dataExists(org.opendaylight.controller.cluster.datastore.AbstractShardDataTreeTransaction<?> transaction, DataExists message)
-