uk.ac.soton.itinnovation.grid.service.types
Class UsageReport
java.lang.Object
uk.ac.soton.itinnovation.grid.service.types.UsageReport
public class UsageReport
- extends Object
This class should be used by functional services to report usage to the SLA Service.
To report cumulative usage where the start and end times are known, set type=CUMULATIVE, and set startTime, endTime and amount.
To report cumulative usage where only one time is known, set type=CUMULATIVE, and set startTime and amount.
To report an instantaneous measurement, set type=INSTANTANEOUS and set startTime and amount.
The functional service is not required to have any state about
previous usage. The implication of this is that the instantaneous
reports from the services are reporting on the measurement "now",
so a CPU measurement for instance would go to 1 initially and then
to 0 when the job stopped. This is different to the
InstantaneousRateReport object used internally by the SLA service
which encodes incremental changes. A usage report reports on a
single usage event - e.g. the service has just used x amount of
some metric. The service must not report the same usage twice.
type
public UsageType type
UsageReport
public UsageReport()
UsageReport
public UsageReport(org.apache.axis.message.addressing.EndpointReferenceType epr,
Metric metric,
UsageType type,
Calendar start,
Calendar end,
double amount)
getId
public Long getId()
setId
public void setId(Long argId)
getMetric
public Metric getMetric()
setMetric
public void setMetric(Metric argMetric)
getActivityEPR
public org.apache.axis.message.addressing.EndpointReferenceType getActivityEPR()
setActivityEPR
public void setActivityEPR(org.apache.axis.message.addressing.EndpointReferenceType argActivityEPR)
getActivityId
public String getActivityId()
setActivityId
public void setActivityId(String argActivityId)
getStartTime
public Calendar getStartTime()
setStartTime
public void setStartTime(Calendar argStartTime)
getEndTime
public Calendar getEndTime()
setEndTime
public void setEndTime(Calendar argEndTime)
getType
public String getType()
setType
public void setType(String argType)
getAmount
public double getAmount()
setAmount
public void setAmount(double argAmount)
toString
public String toString()
-
- Overrides:
toString in class Object
Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.