org.ogf.graap.wsag.api.sla
Class AdvanceReservationComputeJobTemplate
java.lang.Object
org.ogf.graap.wsag.api.types.WSAGXmlType
org.ogf.graap.wsag.api.types.TemplateType
org.ogf.graap.wsag.api.sla.AbstractComputeJobTemplate
org.ogf.graap.wsag.api.sla.AdvanceReservationComputeJobTemplate
- All Implemented Interfaces:
- AgreementTemplate
public class AdvanceReservationComputeJobTemplate
- extends AbstractComputeJobTemplate
AdvanceReservationComputeJobTemplate
<wsag:AgreementTemplateType wsag:TemplateId="1"
xmlns:wsag="http://schemas.ggf.org/graap/2007/03/ws-agreement">
<wsag:Name>ADVANCE-RESERVATION-COMPUTE-JOB</wsag:Name>
<wsag:Context>
<wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
<wsag:TemplateId>1</wsag:TemplateId>
<wsag:TemplateName>ADVANCE-RESERVATION-COMPUTE-JOB</wsag:TemplateName>
</wsag:Context>
<wsag:Terms>
<wsag:All>
<wsag:ExactlyOne>
<wsag:ServiceDescriptionTerm wsag:Name="APPLICATION_SDT"
wsag:ServiceName="COMPUTE_SERVICE">
<jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl">
<jsdl:JobDescription>
<jsdl:Application>
<jsdl:ApplicationName>Application_1</jsdl:ApplicationName>
<jsdl:ApplicationVersion>1</jsdl:ApplicationVersion>
<jsdl:Description>Description</jsdl:Description>
</jsdl:Application>
</jsdl:JobDescription>
</jsdl:JobDefinition>
</wsag:ServiceDescriptionTerm>
<wsag:ServiceDescriptionTerm wsag:Name="APPLICATION_SDT"
wsag:ServiceName="COMPUTE_SERVICE">
<jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl">
<jsdl:JobDescription>
<jsdl:Application>
<jsdl:ApplicationName>Application_2</jsdl:ApplicationName>
<jsdl:ApplicationVersion>2</jsdl:ApplicationVersion>
<jsdl:Description>Description</jsdl:Description>
</jsdl:Application>
</jsdl:JobDescription>
</jsdl:JobDefinition>
</wsag:ServiceDescriptionTerm>
</wsag:ExactlyOne>
<wsag:ServiceDescriptionTerm wsag:Name="RESOURCE_SDT"
wsag:ServiceName="RESOURCE_PROVISIONING_SERVICE">
<jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl">
<jsdl:JobDescription>
<jsdl:Resources>
<jsdl:IndividualCPUTime>
<jsdl:Exact>
$RESOURCES.getIndividualCPUTime().getExactArray(0).
getDoubleValue()</jsdl:Exact>
</jsdl:IndividualCPUTime>
<jsdl:IndividualCPUCount>
<jsdl:Exact>
$RESOURCES.getIndividualCPUCount().getExactArray(0).
getDoubleValue()</jsdl:Exact>
</jsdl:IndividualCPUCount>
<jsdl:TotalResourceCount>
<jsdl:Exact>
$RESOURCES.getTotalResourceCount().getExactArray(0).
getDoubleValue()</jsdl:Exact>
</jsdl:TotalResourceCount>
</jsdl:Resources>
</jsdl:JobDescription>
</jsdl:JobDefinition>
</wsag:ServiceDescriptionTerm>
<wsag:ServiceDescriptionTerm wsag:Name="TIME_CONSTRAINT_SDT"
wsag:ServiceName="RESERVATION_SERVICE">
<wsag4jt:TimeConstraint
xmlns:wsag4jt="http://schemas.wsag4j.org/2009/07/wsag4j-scheduling-extensions">
<wsag4jt:StartTime>2010-05-20T00:00:00</wsag4jt:StartTime>
<wsag4jt:Duration>1</wsag4jt:Duration>
</wsag4jt:TimeConstraint>
</wsag:ServiceDescriptionTerm>
</wsag:All>
</wsag:Terms>
<wsag:CreationConstraints> ... </wsag:CreationConstraints>
</wsag:AgreementTemplateType>
- Author:
- Oliver Waeldrich
Field Summary |
static String |
ID
Template id for which this pattern applies. |
static String |
NAME
Template name for which this pattern applies. |
Methods inherited from class org.ogf.graap.wsag.api.types.TemplateType |
getAgreementId, getContext, getCreationConstraints, getName, getTemplateId, getTerms, getXMLObject, setAgreementId, setContext, setCreationConstraints, setName, setTemplateId, setTerms, validate |
Methods inherited from class org.ogf.graap.wsag.api.types.WSAGXmlType |
addObserver, countObservers, deleteObserver, deleteObservers, getObservable, hasChanged, notifyObservers, notifyObservers, processTemplate, setChanged, setObservable, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- Template name for which this pattern applies.
- See Also:
- Constant Field Values
ID
public static final String ID
- Template id for which this pattern applies.
- See Also:
- Constant Field Values
AdvanceReservationComputeJobTemplate
public AdvanceReservationComputeJobTemplate(AgreementTemplateType template)
- Parameters:
template
- the agreement template XML representation
getTimeConstraint
public TimeConstraintType getTimeConstraint()
- Returns:
- the specified time constraints
- See Also:
AdvanceReservationPattern.getTimeConstraint()
getOffer
public AdvanceReservationComputeJobOffer getOffer()
throws Exception
- Returns:
- an offer based on this template
- Throws:
Exception
- failed to create the offer object
Copyright © 2008-2012. All Rights Reserved.