Class PrimaryShardInfo
- java.lang.Object
 - 
- org.opendaylight.controller.cluster.datastore.messages.PrimaryShardInfo
 
 
- 
public class PrimaryShardInfo extends Object
Local message DTO that contains information about the primary shard.- Author:
 - Thomas Pantelis
 
 
- 
- 
Constructor Summary
Constructors Constructor Description PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion)PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion, @NonNull ReadOnlyDataTree localShardDataTree) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull Optional<ReadOnlyDataTree>getLocalShardDataTree()Returns an Optional whose value contains the primary shard's DataTree if the primary shard is local to the caller.@NonNull ActorSelectiongetPrimaryShardActor()Returns an ActorSelection representing the primary shard actor.shortgetPrimaryShardVersion()Returns the version of the primary shard. 
 - 
 
- 
- 
Constructor Detail
- 
PrimaryShardInfo
public PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion, @NonNull ReadOnlyDataTree localShardDataTree)
 
- 
PrimaryShardInfo
public PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion)
 
 - 
 
- 
Method Detail
- 
getPrimaryShardActor
public @NonNull ActorSelection getPrimaryShardActor()
Returns an ActorSelection representing the primary shard actor. 
- 
getPrimaryShardVersion
public short getPrimaryShardVersion()
Returns the version of the primary shard. 
- 
getLocalShardDataTree
public @NonNull Optional<ReadOnlyDataTree> 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. 
 - 
 
 -