Package com.yahoo.vdslib.distribution
Class Group
java.lang.Object
com.yahoo.vdslib.distribution.Group
- All Implemented Interfaces:
Comparable<Group>
Represent a group in the tree structure of groups in hierarchical setup of VDS nodes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe distribution class keeps precalculated arrays for distributions for all legal redundancies. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubGroup(Group g) intbooleandoubleintgetGroupForNode(int index) intgetIndex()getName()getNodes()getPath()inthashCode()booleanvoidsetCapacity(double c) voidsetNodes(List<ConfiguredNode> nodes) toString()
-
Constructor Details
-
Group
-
Group
-
-
Method Details
-
getPath
-
getUnixStylePath
-
compareTo
- Specified by:
compareToin interfaceComparable<Group>
-
equals
-
hashCode
public int hashCode() -
toString
-
toString
-
addSubGroup
-
setCapacity
public void setCapacity(double c) -
setNodes
-
getName
-
getIndex
public int getIndex() -
getNodes
-
getSubgroups
-
getCapacity
public double getCapacity() -
getDistributionHash
public int getDistributionHash() -
isLeafGroup
public boolean isLeafGroup() -
getDistribution
-
getGroupForNode
-