uk.ac.soton.itinnovation.grid.service.types
Class SLATemplate
java.lang.Object
uk.ac.soton.itinnovation.grid.service.types.GridResource
uk.ac.soton.itinnovation.grid.service.types.SLATemplate
public class SLATemplate
- extends GridResource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLA_TEMPLATE_RESOURCE_TYPE
public static final String SLA_TEMPLATE_RESOURCE_TYPE
- See Also:
- Constant Field Values
SLATemplate
public SLATemplate()
getResourceType
public String getResourceType()
- Description copied from class:
GridResource
- Return the PBAC type of the resource.
- Specified by:
getResourceType in class GridResource
getDescription
public String getDescription()
setDescription
public void setDescription(String argDescription)
getPermittedServices
public PermittedService[] getPermittedServices()
setPermittedServices
public void setPermittedServices(PermittedService[] argPermittedServices)
getConstraints
public Constraint[] getConstraints()
setConstraints
public void setConstraints(Constraint[] argConstraints)
throws GridFailureException
- The constraints on an SLATemplate are restricted in several ways:
1. Their bound must be LE, LT or EQ.
2. CUMULATIVE constraints must also have a duration.
3. You cannot have more than one INSTANTANEOUS constraint for the same metric.
4. You cannot have more than one CUMULATIVE constraint for the same metric.
5. If there is a INSTANTANEOUS and a CUMULATIVE constraint on a metric then
the rate implied by the CUMULATIVE constraint must not be higher than
the limit of the INSTANTANEOUS constraint (after taking contention into
account).
- Throws:
GridFailureException
getPricingTerms
public PricingTerm[] getPricingTerms()
setPricingTerms
public void setPricingTerms(PricingTerm[] argPricingTerms)
getStartTime
public Calendar getStartTime()
setStartTime
public void setStartTime(Calendar argStartTime)
getEndTime
public Calendar getEndTime()
setEndTime
public void setEndTime(Calendar argEndTime)
getBillingPeriod
public TimePeriod getBillingPeriod()
setBillingPeriod
public void setBillingPeriod(TimePeriod argBillingPeriod)
getSigningFee
public BigDecimal getSigningFee()
setSigningFee
public void setSigningFee(BigDecimal argSigningFee)
getSubscriptionFee
public BigDecimal getSubscriptionFee()
setSubscriptionFee
public void setSubscriptionFee(BigDecimal fee)
getCurrency
public String getCurrency()
setCurrency
public void setCurrency(String argCurrency)
makePublicCopy
public SLATemplate makePublicCopy()
- Return a client copy of the template.
The copy will have no private constraints in it.
getTypeDesc
public static TypeDesc getTypeDesc()
- Return type metadata object.
copyWithNullId
public SLATemplate copyWithNullId()
- Return a copy of the SLATemplate that will be independent of the original when hibernated.
More precisely, the IDs of the template, constraints and
pricing terms are all set to null. The permitted services and
the metrics (used by the constraints and pricing terms) are
shared as usual.
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.