org.ogf.graap.wsag.api.sla
Class ComputeJobTemplate
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.ComputeJobTemplate
- All Implemented Interfaces:
- AgreementTemplate
public class ComputeJobTemplate
- extends AbstractComputeJobTemplate
ComputeJobTemplate
<wsag:Template wsag:TemplateId="1"
xmlns:wsag="http://schemas.ggf.org/graap/2007/03/ws-agreement">
<wsag:Name>COMPUTE-JOB</wsag:Name>
<wsag:Context>
<wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
<wsag:TemplateId>1</wsag:TemplateId>
<wsag:TemplateName>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:All>
</wsag:Terms>
<wsag:CreationConstraints>
...
</wsag:CreationConstraints>
</wsag:Template>
- Author:
- Oliver Waeldrich
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 |
ComputeJobTemplate
public ComputeJobTemplate(AgreementTemplateType template)
- Parameters:
template
- the agreement template XML representation
getOffer
public ComputeJobOffer getOffer()
throws Exception
- Creates an offer based on this template.
- Returns:
- the new offer
- Throws:
Exception
- failed to create the offer object
getDefaultTemplateName
public static String getDefaultTemplateName()
- Returns:
- the template name to which this pattern applies
getDefaultTemplateId
public static String getDefaultTemplateId()
- Returns:
- the template id to which this pattern applies
Copyright © 2008-2012. All Rights Reserved.