|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.types.jsdl.RecognisedElementParser
uk.ac.soton.itinnovation.grid.service.types.jsdl.JobDescription
public class JobDescription
Class used for parsing and creating JSDL documents.
| Field Summary | |
|---|---|
static String |
GRID_NS
|
static String |
JSDL_NS
|
static String |
JSDL_POSIX_NS
|
static String |
WSA_NS
|
| Constructor Summary | |
|---|---|
JobDescription(Document jsdl)
Validates and parses a JSDL document |
|
JobDescription(Element jobDescription)
Validates and parses the top-level element of a JSDL document |
|
JobDescription(File jsdlFile)
Validates and parses a JSDL document from a file. |
|
JobDescription(String jobName,
ApplicationMetadata metadata)
Creates a new JSDL description with the given job name and the default number of inputs and outputs. |
|
JobDescription(String jobName,
String appUri)
Creates a new, empty JSDL description with the given job name and application URI. |
|
| Method Summary | |
|---|---|
void |
addStager(String name)
Creates and adds a new DataStaging section with the given name |
Application |
getApplication()
|
DataStaging |
getDataStaging(String name)
|
DataStaging[] |
getDataStagings()
|
org.apache.axis.message.addressing.EndpointReferenceType |
getJobEPR()
|
JobIdentification |
getJobIdentification()
|
Document |
getOriginalDocument()
|
Resources |
getResources()
|
protected void |
parseElement(Element e,
String namespace,
String localName)
|
void |
setDataStagerEPR(String name,
org.apache.axis.message.addressing.EndpointReferenceType epr)
|
void |
setJobEPR(org.apache.axis.message.addressing.EndpointReferenceType epr)
|
Document |
toXML()
Generates a new XML document representing this JSDL description. |
| Methods inherited from class uk.ac.soton.itinnovation.grid.service.types.jsdl.RecognisedElementParser |
|---|
addOtherNode, addRecognisedElement, addRecognisedElements, importOtherNodes, parse, removeOtherNode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JSDL_NS
public static final String JSDL_POSIX_NS
public static final String GRID_NS
public static final String WSA_NS
| Constructor Detail |
|---|
public JobDescription(Document jsdl)
jsdl - The JSDL documentpublic JobDescription(Element jobDescription)
jobDescription - The <JobDescription> element of a JSDL document
public JobDescription(String jobName,
ApplicationMetadata metadata)
jobName - A user-specified descriptive name for the jobmetadata - The job metadata.
public JobDescription(String jobName,
String appUri)
jobName - A user-specified descriptive name for the jobappUri - The application URI. You can call getApplications() on the Job service
to obtain a list of these URIs.
public JobDescription(File jsdlFile)
throws GridFailureException
jsdlFile - The file to parse
GridFailureException| Method Detail |
|---|
protected void parseElement(Element e,
String namespace,
String localName)
parseElement in class RecognisedElementParserpublic Document getOriginalDocument()
public JobIdentification getJobIdentification()
public Application getApplication()
public Resources getResources()
public DataStaging[] getDataStagings()
public DataStaging getDataStaging(String name)
public org.apache.axis.message.addressing.EndpointReferenceType getJobEPR()
public void setJobEPR(org.apache.axis.message.addressing.EndpointReferenceType epr)
public void setDataStagerEPR(String name,
org.apache.axis.message.addressing.EndpointReferenceType epr)
public Document toXML()
throws GridFailureException
RecognisedElementParser.addOtherNode(org.w3c.dom.Node).
GridFailureExceptionpublic void addStager(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||