Package com.yahoo.config.provision
Class ClusterResources
java.lang.Object
com.yahoo.config.provision.ClusterResources
The resources of a cluster
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
cost()
Returns the standard cost of these resources, in dollars per hourboolean
int
groups()
int
hashCode()
boolean
isWithin
(ClusterResources min, ClusterResources max) Returns true if this is within the given limits (inclusive) and is compatible with themint
nodes()
Returns the total number of allocated nodes (over all groups)boolean
smallerThan
(ClusterResources other) Returns true if this is smaller than the given resources in any dimensiontoString()
Returns the total resources of this, that is the number of nodes times the node resourceswith
(NodeResources resources) withGroups
(int groups) withNodes
(int nodes)
-
Constructor Details
-
ClusterResources
-
-
Method Details
-
nodes
public int nodes()Returns the total number of allocated nodes (over all groups) -
groups
public int groups() -
nodeResources
-
with
-
withNodes
-
withGroups
-
smallerThan
Returns true if this is smaller than the given resources in any dimension -
isWithin
Returns true if this is within the given limits (inclusive) and is compatible with them -
totalResources
Returns the total resources of this, that is the number of nodes times the node resources -
justNumbers
-
cost
public double cost()Returns the standard cost of these resources, in dollars per hour -
equals
-
hashCode
public int hashCode() -
toString
-