uk.ac.soton.itinnovation.grid.service.types
Class SLATemplate

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.types.GridResource
      extended by uk.ac.soton.itinnovation.grid.service.types.SLATemplate

public class SLATemplate
extends GridResource


Field Summary
static String SLA_TEMPLATE_RESOURCE_TYPE
           
 
Constructor Summary
SLATemplate()
           
 
Method Summary
 SLATemplate copyWithNullId()
          Return a copy of the SLATemplate that will be independent of the original when hibernated.
 TimePeriod getBillingPeriod()
           
 Constraint[] getConstraints()
           
 String getCurrency()
           
 String getDescription()
           
 Calendar getEndTime()
           
 PermittedService[] getPermittedServices()
           
 PricingTerm[] getPricingTerms()
           
 String getResourceType()
          Return the PBAC type of the resource.
 BigDecimal getSigningFee()
           
 Calendar getStartTime()
           
 BigDecimal getSubscriptionFee()
           
static TypeDesc getTypeDesc()
          Return type metadata object.
 SLATemplate makePublicCopy()
          Return a client copy of the template.
 void setBillingPeriod(TimePeriod argBillingPeriod)
           
 void setConstraints(Constraint[] argConstraints)
          The constraints on an SLATemplate are restricted in several ways: 1.
 void setCurrency(String argCurrency)
           
 void setDescription(String argDescription)
           
 void setEndTime(Calendar argEndTime)
           
 void setPermittedServices(PermittedService[] argPermittedServices)
           
 void setPricingTerms(PricingTerm[] argPricingTerms)
           
 void setSigningFee(BigDecimal argSigningFee)
           
 void setStartTime(Calendar argStartTime)
           
 void setSubscriptionFee(BigDecimal fee)
           
 
Methods inherited from class uk.ac.soton.itinnovation.grid.service.types.GridResource
equalsByValue, 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
 

Field Detail

SLA_TEMPLATE_RESOURCE_TYPE

public static final String SLA_TEMPLATE_RESOURCE_TYPE
See Also:
Constant Field Values
Constructor Detail

SLATemplate

public SLATemplate()
Method Detail

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.