public interface CapacityRequirement extends Comparable<CapacityRequirement>
ElasticMachineProvisioning
Each implementation must have a public default constructor that creates a zero capacity requirement object.
Each implementation must be immutable.CapacityRequirements
Modifier and Type | Method and Description |
---|---|
CapacityRequirement |
add(CapacityRequirement otherCapacityRequirement) |
double |
divide(CapacityRequirement otherCapacityRequirement) |
CapacityRequirement |
divide(int numberOfContainers) |
boolean |
equals(Object otherCapacityRequirement) |
boolean |
equalsZero() |
CapacityRequirementType<? extends CapacityRequirement> |
getType() |
int |
hashCode() |
CapacityRequirement |
max(CapacityRequirement otherCapacityRequirement) |
CapacityRequirement |
min(CapacityRequirement otherCapacityRequirement) |
CapacityRequirement |
multiply(int i) |
CapacityRequirement |
subtract(CapacityRequirement otherCapacityRequirement) |
CapacityRequirement |
subtractOrZero(CapacityRequirement otherCapacityRequirement) |
String |
toString() |
compareTo
boolean equalsZero()
CapacityRequirement multiply(int i)
CapacityRequirement divide(int numberOfContainers)
CapacityRequirement subtract(CapacityRequirement otherCapacityRequirement)
CapacityRequirement subtractOrZero(CapacityRequirement otherCapacityRequirement)
CapacityRequirement add(CapacityRequirement otherCapacityRequirement)
CapacityRequirement min(CapacityRequirement otherCapacityRequirement)
CapacityRequirement max(CapacityRequirement otherCapacityRequirement)
double divide(CapacityRequirement otherCapacityRequirement)
CapacityRequirementType<? extends CapacityRequirement> getType()
Copyright © GigaSpaces.