|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPlatformObject
eu.geclipse.core.model.impl.AbstractGridElement
eu.geclipse.core.model.impl.AbstractGridContainer
eu.geclipse.core.model.impl.ResourceGridContainer
eu.geclipse.jsdl.JSDLJobDescription
public class JSDLJobDescription
Concrete implementation of an IGridJobDescription for the JSDL
language.
| Constructor Summary | |
|---|---|
JSDLJobDescription(IFile file)
Create a new JSDL job description from the specified IFile. |
|
| Method Summary | |
|---|---|
void |
addArgument(java.lang.String argName)
Adds a Argument element as a child of POSIXApplication element. |
void |
addArgumentForPosixApplication(java.lang.String argName,
java.util.ArrayList<java.lang.String> argValues)
Method to add Argument element to POSIXApplication element. |
void |
addCandidateHosts(java.util.List<java.lang.String> hostsList)
Method to set CandidateHost element of JSDL's Resources. |
void |
addDataStagingIn(java.lang.String name,
java.lang.String path)
Sets JSDL DataStaging element for staged in resources. |
void |
addDataStagingOut(java.lang.String name,
java.lang.String path)
Adds JSDL DataStaging element for staged out resources. |
java.lang.String |
getApplicationName()
Method to access "name" attribute of the POSIXApplication element. |
java.lang.String |
getAsString()
|
java.util.List<java.lang.String> |
getCandidateHostsNames()
Method to access list of candidate hosts. |
java.lang.String |
getCpuArchitectureName()
Method to access CPUArchitecture name. |
java.util.List<DataStagingType> |
getDataStagingIn()
Returns list of those DataStagings entries that have Source element set (data stagings in) |
java.util.Map<java.lang.String,java.lang.String> |
getDataStagingInStrings()
Returns list of DataStagings entries that have Source element set (data stagings in) in form of Strings map - mapping file name to its location |
java.util.List<DataStagingType> |
getDataStagingOut()
Returns list of those DataStagings entries that have Target element set (data stgaings out) |
java.util.Map<java.lang.String,java.lang.String> |
getDataStagingOutStrings()
Returns list of DataStagings entries that have Target element set (data stagings out) in form of Strings map - mapping file name to its location |
java.lang.String |
getDescription()
|
DocumentRoot |
getDocumentRoot()
Method to access root element of an EMF document represented by this object. |
java.lang.String |
getExecutable()
|
java.util.List<java.lang.String> |
getExecutableArguments()
|
java.lang.String |
getJSDLString()
Get the content of the corresponding JSDL file. |
java.lang.String |
getOSTypeName()
Method to access OperatingSystem name. |
java.lang.String |
getOSVersion()
Method to access OperatingSystem version. |
java.lang.String |
getStdErrorFileName()
|
java.net.URI |
getStdErrorUri()
|
java.lang.String |
getStdInputFileName()
|
java.net.URI |
getStdInputUri()
|
java.lang.String |
getStdOutputFileName()
|
java.net.URI |
getStdOutputUri()
|
org.w3c.dom.Document |
getXml()
Returns EMF XML document as a DOM XML Document |
boolean |
isParametric()
|
void |
removeDataStaging()
Method to remove all DataStagings elements from JSDL. |
void |
removeTargetsFromOutStaging()
|
void |
save()
Given EMF model representation of JSDL this method serialises it to File (through EMF resources) |
void |
setApplicationName(java.lang.String applicationName)
Method to set "name" attribute of POSIXApplication element. |
void |
setJobIdentification(java.lang.String jobName,
java.lang.String description)
This method re-sets JSDL JobIdentification element (creates new empty element). |
void |
setPOSIXApplicationDetails(java.lang.String applicationName,
java.lang.String executableFile,
java.lang.String stdin,
java.lang.String stdinName,
java.lang.String stdout,
java.lang.String outName,
java.lang.String err,
java.lang.String errName)
This method is for set content of POSIXApplication element. |
void |
setRoot(DocumentRoot root)
This method is to set EMF document's root element. |
void |
setUpBasicJSDLStructure()
This method re-sets JSDL content. |
| Methods inherited from class eu.geclipse.core.model.impl.ResourceGridContainer |
|---|
getFileStore, getName, getParent, getPath, getResource, isLazy, isLocal |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer |
|---|
canContain, contains, create, delete, deleteAll, dispose, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty |
| Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement |
|---|
getAdapter, getProject, isHidden, isVirtual |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.geclipse.core.model.IGridContainer |
|---|
canContain, contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, isLazy, refresh, setDirty |
| Methods inherited from interface eu.geclipse.core.model.IGridElement |
|---|
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual |
| Constructor Detail |
|---|
public JSDLJobDescription(IFile file)
IFile.
file - The file from which to create the description.| Method Detail |
|---|
public DocumentRoot getDocumentRoot()
public void setRoot(DocumentRoot root)
root - EMF document root to set as a JSDL root elementpublic void save()
jsdlRoot - EMF object representing JSDL document root. This is handler
to JSDL content in terms of EMF.
public java.lang.String getJSDLString()
throws java.io.IOException,
CoreException
java.io.IOException - If an error occurs when loading the content.
CoreException - in case content of resource associated with JSDL is
not accessiblepublic void setUpBasicJSDLStructure()
public void setJobIdentification(java.lang.String jobName,
java.lang.String description)
jobName - name of the jobdescription - the description of the job
public void setPOSIXApplicationDetails(java.lang.String applicationName,
java.lang.String executableFile,
java.lang.String stdin,
java.lang.String stdinName,
java.lang.String stdout,
java.lang.String outName,
java.lang.String err,
java.lang.String errName)
applicationName - name of the POSIXApplication (value of "name"
attribute in POSIXApplication element)executableFile - value of Executable elementstdin - standard input file's URI (used in data staging element)stdinName - standard input file's name (used in POSIX Input element
and as a file name in data staging entry)stdout - standard output file's URI (used in data staging element)outName - standard output file's name (used in POSIX Output element
and as a file name in data staging entry)err - standard error file's URI (used in data staging element)errName - standard error file's name (used in POSIX Error element and
as a file name in data staging entry)
public void addDataStagingOut(java.lang.String name,
java.lang.String path)
name - name of the resourcepath - URI representing resource's location
public void addDataStagingIn(java.lang.String name,
java.lang.String path)
name - name of the resourcepath - URI representing resource's locationpublic java.lang.String getExecutable()
getExecutable in interface IGridJobDescriptionpublic java.lang.String getDescription()
getDescription in interface IGridJobDescriptionpublic java.util.List<java.lang.String> getExecutableArguments()
getExecutableArguments in interface IGridJobDescriptionpublic java.lang.String getCpuArchitectureName()
public java.lang.String getOSTypeName()
public java.lang.String getOSVersion()
public void addArgumentForPosixApplication(java.lang.String argName,
java.util.ArrayList<java.lang.String> argValues)
argName - name of the argumentargValues - list of argument's valuespublic void addArgument(java.lang.String argName)
argName - name of the argument to addpublic java.lang.String getStdInputFileName()
getStdInputFileName in interface IGridJobDescriptionpublic java.lang.String getStdOutputFileName()
getStdOutputFileName in interface IGridJobDescriptionpublic void addCandidateHosts(java.util.List<java.lang.String> hostsList)
hostsList - list of hosts namespublic java.util.List<DataStagingType> getDataStagingIn()
public java.util.Map<java.lang.String,java.lang.String> getDataStagingInStrings()
public java.util.Map<java.lang.String,java.lang.String> getDataStagingOutStrings()
public java.util.List<DataStagingType> getDataStagingOut()
public void removeDataStaging()
public java.net.URI getStdOutputUri()
throws ProblemException
getStdOutputUri in interface IGridJobDescriptionURI to file containing standard output
or null if std output is not staged out
ProblemException - if URI cannot be created
public java.net.URI getStdInputUri()
throws ProblemException
getStdInputUri in interface IGridJobDescriptionURI to file containing standard input
or null if std input is not staged in
ProblemException - if URI cannot be createdpublic java.lang.String getStdErrorFileName()
getStdErrorFileName in interface IGridJobDescription
public java.net.URI getStdErrorUri()
throws ProblemException
getStdErrorUri in interface IGridJobDescriptionURI to file containing standard error
or null if std error is not staged out
ProblemException - if URI cannot be createdpublic void setApplicationName(java.lang.String applicationName)
applicationName - name of the applicationpublic java.lang.String getApplicationName()
public org.w3c.dom.Document getXml()
public java.lang.String getAsString()
throws ProblemException
ProblemExceptionpublic java.util.List<java.lang.String> getCandidateHostsNames()
public boolean isParametric()
public void removeTargetsFromOutStaging()
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||