Class Group
java.lang.Object
com.yahoo.search.dispatch.searchcluster.Group
A group in a search cluster. This class is multithread safe.
- Author:
- bratseth, ollivir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the active documents on this group.voidbooleanbooleanfullCoverageStatusChanged(boolean hasFullCoverageNow) inthashCode()booleanReturns whether this group has sufficient active documents (compared to other groups) that should receive trafficintid()Returns the unique identity of this group.booleanReturns whether the nodes in the group have about the same number of documentsbooleanisSparse()Returns whether this group has too few documents per node to expect it to be balancednodes()Returns the nodes in this group as an immutable listvoidsetHasSufficientCoverage(boolean sufficientCoverage) toString()int
-
Constructor Details
-
Group
-
-
Method Details
-
id
public int id()Returns the unique identity of this group. NOTE: This is a contiguous index from 0, NOT necessarily the group id assigned by the user or node repo. -
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 should receive traffic -
setHasSufficientCoverage
public void setHasSufficientCoverage(boolean sufficientCoverage) -
workingNodes
-
workingNodesCount
public int workingNodesCount() -
aggregateNodeValues
public void aggregateNodeValues() -
activeDocuments
public long activeDocuments()Returns the active documents on this group. If unknown, 0 is returned. -
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
-
hashCode
public int hashCode() -
equals
-