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 Details

    • PrimaryShardInfo

      public PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion, @NonNull ReadOnlyDataTree localShardDataTree)
    • PrimaryShardInfo

      public PrimaryShardInfo(@NonNull ActorSelection primaryShardActor, short primaryShardVersion)
  • Method Details

    • 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.