org.openspaces.grid.gsm.capacity
Class CapacityRequirementsPerAgent
java.lang.Object
org.openspaces.grid.gsm.capacity.CapacityRequirementsPerAgent
public class CapacityRequirementsPerAgent
- extends Object
CapacityRequirementsPerAgent
public CapacityRequirementsPerAgent()
getAgentUids
public Collection<String> getAgentUids()
set
public CapacityRequirementsPerAgent set(String agentUid,
CapacityRequirements capacity)
add
public CapacityRequirementsPerAgent add(String agentUid,
CapacityRequirements capacity)
subtract
public CapacityRequirementsPerAgent subtract(String agentUid,
CapacityRequirements capacity)
add
public CapacityRequirementsPerAgent add(CapacityRequirementsPerAgent other)
subtract
public CapacityRequirementsPerAgent subtract(CapacityRequirementsPerAgent other)
subtractAgent
public CapacityRequirementsPerAgent subtractAgent(String agentUid)
subtractOrZero
public CapacityRequirementsPerAgent subtractOrZero(String agentUid,
CapacityRequirements capacity)
getAgentCapacity
public CapacityRequirements getAgentCapacity(String agentUid)
getAgentCapacityOrZero
public CapacityRequirements getAgentCapacityOrZero(String agentUid)
newZeroInstance
protected CapacityRequirementsPerAgent newZeroInstance()
toString
public String toString()
toDetailedString
public String toDetailedString()
getTotalAllocatedCapacity
public CapacityRequirements getTotalAllocatedCapacity()
equalsZero
public boolean equalsZero()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getKeys
protected Collection<String> getKeys()
add
protected org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey add(org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey other)
subtract
protected org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey subtract(org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey other)
subtractKey
protected org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey subtractKey(String key)
getKeyCapacity
protected CapacityRequirements getKeyCapacity(String key)
getKeyCapacityOrZero
protected CapacityRequirements getKeyCapacityOrZero(String key)
Copyright © GigaSpaces.