Class ReplicationGroup

org.elasticsearch.index.shard.ReplicationGroup

public class ReplicationGroup extends
Replication group for a shard. Used by a primary shard to coordinate replication and recoveries.
  • Constructor Details

    • ReplicationGroup

      public ReplicationGroup(IndexShardRoutingTable routingTable, <> inSyncAllocationIds, <> trackedAllocationIds, long version)
  • Method Details

    • getVersion

      public long getVersion()
    • getRoutingTable

      public IndexShardRoutingTable getRoutingTable()
    • getInSyncAllocationIds

      public <> getInSyncAllocationIds()
    • getTrackedAllocationIds

      public <> getTrackedAllocationIds()
    • getUnavailableInSyncShards

      public <> getUnavailableInSyncShards()
      Returns the set of shard allocation ids that are in the in-sync set but have no assigned routing entry
    • getReplicationTargets

      public <ShardRouting> getReplicationTargets()
      Returns the subset of shards in the routing table that should be replicated to. Includes relocation targets.
    • getSkippedShards

      public <ShardRouting> getSkippedShards()
      Returns the subset of shards in the routing table that are unassigned or initializing and not ready yet to receive operations (i.e. engine not opened yet). Includes relocation targets.
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • toString

      public  toString()
      Overrides:
       in class