Class PrimaryShardInfo
java.lang.Object
org.opendaylight.controller.cluster.datastore.messages.PrimaryShardInfo
Local message DTO that contains information about the primary shard.
- Author:
- Thomas Pantelis
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryShardInfo
(@NonNull ActorSelection primaryShardActor, short primaryShardVersion) PrimaryShardInfo
(@NonNull ActorSelection primaryShardActor, short primaryShardVersion, @NonNull ReadOnlyDataTree localShardDataTree) -
Method Summary
Modifier and TypeMethodDescription@NonNull Optional
<ReadOnlyDataTree> Returns an Optional whose value contains the primary shard's DataTree if the primary shard is local to the caller.@NonNull ActorSelection
Returns an ActorSelection representing the primary shard actor.short
Returns the version of the primary shard.
-
Constructor Details
-
PrimaryShardInfo
public PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion, @NonNull ReadOnlyDataTree localShardDataTree) -
PrimaryShardInfo
-
-
Method Details
-
getPrimaryShardActor
Returns an ActorSelection representing the primary shard actor. -
getPrimaryShardVersion
public short getPrimaryShardVersion()Returns the version of the primary shard. -
getLocalShardDataTree
Returns an Optional whose value contains the primary shard's DataTree if the primary shard is local to the caller. Otherwise the Optional value is absent.
-