Class Group

java.lang.Object
com.yahoo.vdslib.distribution.Group
All Implemented Interfaces:
Comparable<Group>

public class Group extends Object implements Comparable<Group>
Represent a group in the tree structure of groups in hierarchical setup of VDS nodes.
  • Constructor Details

  • Method Details

    • getPath

      public String getPath()
    • getUnixStylePath

      public String getUnixStylePath()
    • compareTo

      public int compareTo(Group o)
      Specified by:
      compareTo in interface Comparable<Group>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String indent)
    • addSubGroup

      public void addSubGroup(Group g)
    • setCapacity

      public void setCapacity(double c)
    • setNodes

      public void setNodes(List<ConfiguredNode> nodes)
    • getName

      public String getName()
    • getIndex

      public int getIndex()
    • getNodes

      public List<ConfiguredNode> getNodes()
    • getSubgroups

      public Map<Integer,Group> getSubgroups()
    • getCapacity

      public double getCapacity()
    • getDistributionHash

      public int getDistributionHash()
    • isLeafGroup

      public boolean isLeafGroup()
    • getDistribution

      public Group.Distribution getDistribution()
    • getGroupForNode

      public Group getGroupForNode(int index)