uk.ac.soton.itinnovation.grid.service.sla
Class ResourceWithUsageByMetric

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.types.GridResource
      extended by uk.ac.soton.itinnovation.grid.service.sla.ResourceWithUsageByMetric
Direct Known Subclasses:
Activity, SLA

public class ResourceWithUsageByMetric
extends GridResource

Represents a resource (e.g. SLA, ResourcePool, Activity..) that has usage (i.e. rates and cumulative usage) assocated with it. The usage is grouped by metric. There is one UsageSummary per metric.


Constructor Summary
ResourceWithUsageByMetric()
           
 
Method Summary
 boolean equalsByValue(Object obj)
           
 Long getId()
           
 ResourceWithUsageByMetric getParent()
           
 String getResourceType()
          Return the PBAC type of the resource.
 Set<UsageSummary> getUsageSummarys()
           
 void setId(Long id)
           
 void setParent(ResourceWithUsageByMetric parent)
           
 void setUsageSummarys(Set<UsageSummary> usageSummarys)
           
 
Methods inherited from class uk.ac.soton.itinnovation.grid.service.types.GridResource
getLabel, getManagementResource, getResourceID, includeInGetResources, setLabel, setManagementResource, setResourceID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceWithUsageByMetric

public ResourceWithUsageByMetric()
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

getParent

public ResourceWithUsageByMetric getParent()

setParent

public void setParent(ResourceWithUsageByMetric parent)

getResourceType

public String getResourceType()
Description copied from class: GridResource
Return the PBAC type of the resource.

Specified by:
getResourceType in class GridResource

getUsageSummarys

public Set<UsageSummary> getUsageSummarys()

setUsageSummarys

public void setUsageSummarys(Set<UsageSummary> usageSummarys)

equalsByValue

public boolean equalsByValue(Object obj)
Overrides:
equalsByValue in class GridResource


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.