org.ogf.graap.wsag.api.pattern
Class ComputeResourcePattern
java.lang.Object
org.ogf.graap.wsag.api.pattern.AbstractPattern
org.ogf.graap.wsag.api.pattern.ComputeResourcePattern
- All Implemented Interfaces:
- IPattern
public class ComputeResourcePattern
- extends AbstractPattern
ComputeResourcePattern
The term compositor contains a RESOURCE_SDT with a JSDL document describing a resource.
<wsag:Template wsag:TemplateId="1"
xmlns:wsag="http://schemas.ggf.org/graap/2007/03/ws-agreement">
<wsag:Name>ComputeApplicationTemplate</wsag:Name>
<wsag:Context>
<wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>
<wsag:TemplateId>1</wsag:TemplateId>
<wsag:TemplateName>ComputeApplicationTemplate</wsag:TemplateName>
</wsag:Context>
<wsag:Terms>
<wsag:All>
<wsag:ServiceDescriptionTerm wsag:Name="SDT_1"
wsag:ServiceName="SERVICE_1">
Put your service description terms here ...
</wsag:ServiceDescriptionTerm>
...
<wsag:ServiceDescriptionTerm wsag:Name="RESOURCE_SDT"
wsag:ServiceName="COMPUTE_SERVICE">
<jsdl:JobDefinition xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl">
<jsdl:JobDescription>
<jsdl:Resources>
<jsdl:IndividualCPUTime>
<jsdl:Exact>3600.0</jsdl:Exact>
</jsdl:IndividualCPUTime>
<jsdl:IndividualCPUCount>
<jsdl:Exact>2.0</jsdl:Exact>
</jsdl:IndividualCPUCount>
<jsdl:TotalResourceCount>
<jsdl:Exact>1.0</jsdl:Exact>
</jsdl:TotalResourceCount>
</jsdl:Resources>
</jsdl:JobDescription>
</jsdl:JobDefinition>
</wsag:ServiceDescriptionTerm>
</wsag:All>
</wsag:Terms>
<wsag:CreationConstraints />
</wsag:Template>
- Author:
- Oliver Waeldrich
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComputeResourcePattern
public ComputeResourcePattern(TermCompositorType termCompositor)
- Initiates the pattern on a given term compositor.
- Parameters:
termCompositor
- the term compositor
initialize
protected void initialize()
- initializes the pattern object after creation
getResourceDefinition
public ResourcesType getResourceDefinition()
- Returns:
- the JSDL resource section in the SDT
getResourceXPath
public String getResourceXPath()
- Sub classes overwrite this method in order to provide a custom XPath expression for resource SDT
selection.
- Returns:
- the resourceXPath
Copyright © 2008-2012. All Rights Reserved.