Class Group


  • public class Group
    extends java.lang.Object
    A group in a search cluster. This class is multithread safe.
    Author:
    bratseth, ollivir
    • Constructor Summary

      Constructors 
      Constructor Description
      Group​(int id, java.util.List<Node> nodes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      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
      boolean isBlockingWrites()
      Returns whether any node in this group is currently blocking write operations
      boolean isFullCoverageStatusChanged​(boolean hasFullCoverageNow)  
      com.google.common.collect.ImmutableList<Node> nodes()
      Returns the nodes in this group as an immutable list
      java.lang.String toString()  
      int workingNodes()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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()
      • isBlockingWrites

        public boolean isBlockingWrites()
        Returns whether any node in this group is currently blocking write operations
      • isFullCoverageStatusChanged

        public boolean isFullCoverageStatusChanged​(boolean hasFullCoverageNow)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object