org.openspaces.grid.gsm.capacity
Interface CapacityRequirement
- All Superinterfaces:
- Comparable<CapacityRequirement>
- All Known Implementing Classes:
- AbstractCapacityRequirement, CpuCapacityRequirement, DriveCapacityRequirement, MemoryCapacityRequirement, NumberOfMachinesCapacityRequirement
public interface CapacityRequirement
- extends Comparable<CapacityRequirement>
A machine capacity requirement for the ElasticMachineProvisioning
Each implementation must have a public default constructor that creates a zero capacity requirement object.
Each implementation must be immutable.
- Author:
- itaif
- See Also:
CapacityRequirements
toString
String toString()
- Overrides:
toString
in class Object
equals
boolean equals(Object otherCapacityRequirement)
- Overrides:
equals
in class Object
hashCode
int hashCode()
- Overrides:
hashCode
in class Object
equalsZero
boolean equalsZero()
multiply
CapacityRequirement multiply(int i)
divide
CapacityRequirement divide(int numberOfContainers)
subtract
CapacityRequirement subtract(CapacityRequirement otherCapacityRequirement)
subtractOrZero
CapacityRequirement subtractOrZero(CapacityRequirement otherCapacityRequirement)
add
CapacityRequirement add(CapacityRequirement otherCapacityRequirement)
min
CapacityRequirement min(CapacityRequirement otherCapacityRequirement)
max
CapacityRequirement max(CapacityRequirement otherCapacityRequirement)
divide
double divide(CapacityRequirement otherCapacityRequirement)
getType
CapacityRequirementType<? extends CapacityRequirement> getType()
Copyright © GigaSpaces.