GigaSpaces XAP 10.0.1 API

org.openspaces.grid.gsm.capacity
Class CapacityRequirementsPerAgent

java.lang.Object
  extended by org.openspaces.grid.gsm.capacity.CapacityRequirementsPerAgent

public class CapacityRequirementsPerAgent
extends Object


Constructor Summary
CapacityRequirementsPerAgent()
           
 
Method Summary
protected  org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey add(org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey other)
           
 CapacityRequirementsPerAgent add(CapacityRequirementsPerAgent other)
           
 CapacityRequirementsPerAgent add(String agentUid, CapacityRequirements capacity)
           
 boolean equals(Object obj)
           
 boolean equalsZero()
           
 CapacityRequirements getAgentCapacity(String agentUid)
           
 CapacityRequirements getAgentCapacityOrZero(String agentUid)
           
 Collection<String> getAgentUids()
           
protected  CapacityRequirements getKeyCapacity(String key)
           
protected  CapacityRequirements getKeyCapacityOrZero(String key)
           
protected  Collection<String> getKeys()
           
 CapacityRequirements getTotalAllocatedCapacity()
           
 int hashCode()
           
protected  CapacityRequirementsPerAgent newZeroInstance()
           
 CapacityRequirementsPerAgent set(String agentUid, CapacityRequirements capacity)
           
protected  org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey subtract(org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey other)
           
 CapacityRequirementsPerAgent subtract(CapacityRequirementsPerAgent other)
           
 CapacityRequirementsPerAgent subtract(String agentUid, CapacityRequirements capacity)
           
 CapacityRequirementsPerAgent subtractAgent(String agentUid)
           
protected  org.openspaces.grid.gsm.capacity.AbstractCapacityRequirementsPerKey subtractKey(String key)
           
 CapacityRequirementsPerAgent subtractOrZero(String agentUid, CapacityRequirements capacity)
           
 String toDetailedString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapacityRequirementsPerAgent

public CapacityRequirementsPerAgent()
Method Detail

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)

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.