|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.sla.ResourcePool
public class ResourcePool
ResourcePool.java
| Constructor Summary | |
|---|---|
ResourcePool()
|
|
| Method Summary | |
|---|---|
void |
addConstraint(Constraint argConstraint)
|
void |
addSLA(SLA sla)
|
void |
closeSLA(SLA sla)
Return resources to the ResourcePool once an SLA has gone into the CLOSED state. |
boolean |
constraintWithMetricExists(String argUri)
Returns true if the metric with the given URI is constrained. |
void |
deleteConstraint(String uri,
org.hibernate.Session hibSession)
|
boolean |
equalsByValue(Object obj)
|
ResourceWithUsageByMetric |
getAllocationPool()
|
Set<Metric> |
getConstrainedMetrics()
|
Constraint |
getConstraint(Metric m)
|
Set<Constraint> |
getConstraints()
|
Long |
getId()
|
List<InstantaneousRateReport> |
getRatesForSLA(SLA sla,
boolean adding)
|
Set<SLA> |
getSlas()
Get all the SLAs in the ResourcePool, regardless of their state. |
ResourceWithUsageByMetric |
getUsagePool()
|
Iterator<SLA> |
iterateSLAs()
Get an iterator for all the SLAs in this resource pool. |
void |
removeSLA(SLA sla)
Remove an SLA from the ResourcePool. |
void |
setAllocationPool(ResourceWithUsageByMetric allocations)
|
void |
setConstraints(Set<Constraint> argConstraints)
|
void |
setId(Long argId)
|
void |
setSlas(Set<SLA> argSlas)
|
void |
setUsagePool(ResourceWithUsageByMetric usage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourcePool()
| Method Detail |
|---|
public Long getId()
public void setId(Long argId)
public Set<Constraint> getConstraints()
public void setConstraints(Set<Constraint> argConstraints)
throws GridFailureException
GridFailureException
public void addConstraint(Constraint argConstraint)
throws GridFailureException
GridFailureException
public void deleteConstraint(String uri,
org.hibernate.Session hibSession)
public boolean constraintWithMetricExists(String argUri)
public Set<SLA> getSlas()
public void setSlas(Set<SLA> argSlas)
public ResourceWithUsageByMetric getAllocationPool()
public void setAllocationPool(ResourceWithUsageByMetric allocations)
public ResourceWithUsageByMetric getUsagePool()
public void setUsagePool(ResourceWithUsageByMetric usage)
public Set<Metric> getConstrainedMetrics()
public Constraint getConstraint(Metric m)
public void addSLA(SLA sla)
public void closeSLA(SLA sla)
public List<InstantaneousRateReport> getRatesForSLA(SLA sla,
boolean adding)
public void removeSLA(SLA sla)
public Iterator<SLA> iterateSLAs()
public boolean equalsByValue(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||