Class Group
- java.lang.Object
-
- com.yahoo.search.dispatch.searchcluster.Group
-
public class Group extends java.lang.Object
A group in a search cluster. This class is multithread safe.- Author:
- bratseth, ollivir
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aggregateNodeValues()
boolean
equals(java.lang.Object other)
boolean
fullCoverageStatusChanged(boolean hasFullCoverageNow)
int
hashCode()
boolean
hasSufficientCoverage()
Returns whether this group has sufficient active documents (compared to other groups) that is should receive trafficint
id()
Returns the unique identity of this groupboolean
isBalanced()
Returns whether the nodes in the group have about the same number of documentsboolean
isBlockingWrites()
Returns whether any node in this group is currently blocking write operationsboolean
isSparse()
Returns whether this group has too few documents per node to expect it to be balancedcom.google.common.collect.ImmutableList<Node>
nodes()
Returns the nodes in this group as an immutable listjava.lang.String
toString()
int
workingNodes()
-
-
-
Constructor Detail
-
Group
public Group(int id, java.util.List<Node> nodes)
-
-
Method Detail
-
id
public int id()
Returns the unique identity of this group
-
nodes
public com.google.common.collect.ImmutableList<Node> nodes()
Returns the nodes in this group as an immutable list
-
hasSufficientCoverage
public boolean hasSufficientCoverage()
Returns whether this group has sufficient active documents (compared to other groups) that is should receive traffic
-
workingNodes
public int workingNodes()
-
aggregateNodeValues
public void aggregateNodeValues()
-
isBlockingWrites
public boolean isBlockingWrites()
Returns whether any node in this group is currently blocking write operations
-
isBalanced
public boolean isBalanced()
Returns whether the nodes in the group have about the same number of documents
-
isSparse
public boolean isSparse()
Returns whether this group has too few documents per node to expect it to be balanced
-
fullCoverageStatusChanged
public boolean fullCoverageStatusChanged(boolean hasFullCoverageNow)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-