GigaSpaces XAP 9.7.2 API

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

Method Summary
 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()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

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()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.