Package org.elasticsearch.index.shard
Class ReplicationGroup
java.lang.Object
org.elasticsearch.index.shard.ReplicationGroup
Replication group for a shard. Used by a primary shard to coordinate replication and recoveries.
-
Constructor Summary
ConstructorDescriptionReplicationGroup
(IndexShardRoutingTable routingTable, Set<String> inSyncAllocationIds, Set<String> trackedAllocationIds, long version) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the subset of shards in the routing table that should be replicated to.Returns the subset of shards in the routing table that are unassigned or initializing and not ready yet to receive operations (i.e.Returns the set of shard allocation ids that are in the in-sync set but have no assigned routing entrylong
int
hashCode()
toString()
-
Constructor Details
-
ReplicationGroup
public ReplicationGroup(IndexShardRoutingTable routingTable, Set<String> inSyncAllocationIds, Set<String> trackedAllocationIds, long version)
-
-
Method Details
-
getVersion
public long getVersion() -
getRoutingTable
-
getInSyncAllocationIds
-
getTrackedAllocationIds
-
getReplicationTargets
Returns the subset of shards in the routing table that should be replicated to. Includes relocation targets. -
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
-
hashCode
public int hashCode() -
toString
-