GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.capacity
Class AbstractCapacityRequirement

java.lang.Object
  extended by org.openspaces.grid.gsm.capacity.AbstractCapacityRequirement
All Implemented Interfaces:
Comparable<CapacityRequirement>, CapacityRequirement
Direct Known Subclasses:
DriveCapacityRequirement, MemoryCapacityRequirement, NumberOfMachinesCapacityRequirement

public abstract class AbstractCapacityRequirement
extends Object
implements CapacityRequirement


Field Summary
protected  Long value
           
 
Constructor Summary
AbstractCapacityRequirement()
           
AbstractCapacityRequirement(long value)
           
 
Method Summary
 CapacityRequirement add(CapacityRequirement otherCapacityRequirement)
           
 int compareTo(CapacityRequirement otherCapacityRequirement)
           
 double divide(CapacityRequirement otherCapacityRequirement)
           
 CapacityRequirement divide(int i)
           
 boolean equals(Object other)
           
 boolean equalsZero()
           
 CapacityRequirementType<? extends AbstractCapacityRequirement> getType()
           
 CapacityRequirement max(CapacityRequirement otherCapacityRequirement)
           
 CapacityRequirement min(CapacityRequirement otherCapacityRequirement)
           
 CapacityRequirement multiply(int i)
           
 CapacityRequirement subtract(CapacityRequirement otherCapacityRequirement)
           
 CapacityRequirement subtractOrZero(CapacityRequirement otherCapacityRequirement)
           
abstract  String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.grid.gsm.capacity.CapacityRequirement
hashCode
 

Field Detail

value

protected final Long value
Constructor Detail

AbstractCapacityRequirement

public AbstractCapacityRequirement()

AbstractCapacityRequirement

public AbstractCapacityRequirement(long value)
Method Detail

compareTo

public int compareTo(CapacityRequirement otherCapacityRequirement)
Specified by:
compareTo in interface Comparable<CapacityRequirement>

equalsZero

public boolean equalsZero()
Specified by:
equalsZero in interface CapacityRequirement

multiply

public CapacityRequirement multiply(int i)
Specified by:
multiply in interface CapacityRequirement

divide

public CapacityRequirement divide(int i)
Specified by:
divide in interface CapacityRequirement

subtract

public CapacityRequirement subtract(CapacityRequirement otherCapacityRequirement)
Specified by:
subtract in interface CapacityRequirement

subtractOrZero

public CapacityRequirement subtractOrZero(CapacityRequirement otherCapacityRequirement)
Specified by:
subtractOrZero in interface CapacityRequirement

add

public CapacityRequirement add(CapacityRequirement otherCapacityRequirement)
Specified by:
add in interface CapacityRequirement

min

public CapacityRequirement min(CapacityRequirement otherCapacityRequirement)
Specified by:
min in interface CapacityRequirement

max

public CapacityRequirement max(CapacityRequirement otherCapacityRequirement)
Specified by:
max in interface CapacityRequirement

divide

public double divide(CapacityRequirement otherCapacityRequirement)
Specified by:
divide in interface CapacityRequirement

getType

public CapacityRequirementType<? extends AbstractCapacityRequirement> getType()
Specified by:
getType in interface CapacityRequirement

equals

public boolean equals(Object other)
Specified by:
equals in interface CapacityRequirement
Overrides:
equals in class Object

toString

public abstract String toString()
Specified by:
toString in interface CapacityRequirement
Overrides:
toString in class Object

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.