public static class SearchCluster.Group extends Object
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
activeDocuments |
private AtomicBoolean |
hasSufficientCoverage |
private int |
id |
private com.google.common.collect.ImmutableList<SearchCluster.Node> |
nodes |
Constructor and Description |
---|
Group(int id,
List<SearchCluster.Node> nodes) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
aggregateActiveDocuments() |
boolean |
equals(Object other) |
(package private) long |
getActiveDocuments()
Returns the active documents on this node.
|
int |
hashCode() |
boolean |
hasSufficientCoverage()
Returns whether this group has sufficient active documents
(compared to other groups) that is should receive traffic
|
int |
id()
Returns the unique identity of this group
|
com.google.common.collect.ImmutableList<SearchCluster.Node> |
nodes()
Returns the nodes in this group as an immutable list
|
(package private) void |
setHasSufficientCoverage(boolean sufficientCoverage) |
String |
toString() |
private final int id
private final com.google.common.collect.ImmutableList<SearchCluster.Node> nodes
private final AtomicBoolean hasSufficientCoverage
private final AtomicLong activeDocuments
public Group(int id, List<SearchCluster.Node> nodes)
public int id()
public com.google.common.collect.ImmutableList<SearchCluster.Node> nodes()
public boolean hasSufficientCoverage()
void setHasSufficientCoverage(boolean sufficientCoverage)
void aggregateActiveDocuments()
long getActiveDocuments()
Copyright © 2018. All rights reserved.