public class ReplicationGroup
extends java.lang.Object
Constructor | Description |
---|---|
ReplicationGroup(IndexShardRoutingTable routingTable,
java.util.Set<java.lang.String> inSyncAllocationIds,
java.util.Set<java.lang.String> trackedAllocationIds) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.util.Set<java.lang.String> |
getInSyncAllocationIds() |
|
java.util.List<ShardRouting> |
getReplicationTargets() |
Returns the subset of shards in the routing table that should be replicated to.
|
IndexShardRoutingTable |
getRoutingTable() |
|
java.util.List<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.
|
java.util.Set<java.lang.String> |
getUnavailableInSyncShards() |
Returns the set of shard allocation ids that are in the in-sync set but have no assigned routing entry
|
int |
hashCode() |
|
java.lang.String |
toString() |
public ReplicationGroup(IndexShardRoutingTable routingTable, java.util.Set<java.lang.String> inSyncAllocationIds, java.util.Set<java.lang.String> trackedAllocationIds)
public IndexShardRoutingTable getRoutingTable()
public java.util.Set<java.lang.String> getInSyncAllocationIds()
public java.util.Set<java.lang.String> getUnavailableInSyncShards()
public java.util.List<ShardRouting> getReplicationTargets()
public java.util.List<ShardRouting> getSkippedShards()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object