|
||||||||||
| 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.metadata.ApplicationMetadata
public class ApplicationMetadata
Class used for parsing and maintaining an in-memory representation of application metadata XML files. Both 5.1 and 5.2 metadata formats are supported, and methods provided for converting between the two.
| Nested Class Summary | |
|---|---|
static class |
ApplicationMetadata.Version
|
| Field Summary | |
|---|---|
static String |
APP_NS
|
| Constructor Summary | |
|---|---|
ApplicationMetadata(Document doc)
Parses the given application metadata document. |
|
| Method Summary | |
|---|---|
boolean |
getDataStagerExists(String name)
Utility method to find out whether a data stager with the given name exists. |
Document |
getDocument(ApplicationMetadata.Version version)
Returns the application metadata as a DOM document. |
ApplicationInfo |
getInfo()
Returns an object containing information about the application. |
boolean |
getInputExists(String name)
Utility method to find out whether an input stager with the given name exists. |
List<DataStager> |
getInputs()
Returns a list of input DataStager objects representing the input stagers specified in the application metadata. |
boolean |
getOutputExists(String name)
Utility method to find out whether an output stager with the given name exists. |
List<DataStager> |
getOutputs()
Returns a list of output DataStager objects representing the output stagers specified in the application metadata. |
List<Parameter> |
getParameters()
|
String[] |
getRequiredInputStagerNames(ApplicationMetadata.Version version)
Utility method that returns a list of stager names that must be provided when creating a job. |
String[] |
getRequiredOutputStagerNames(ApplicationMetadata.Version version)
Utility method that returns a list of stager names that must be provided when creating a job. |
DataStager |
getStager(String name)
Returns the data stager with the given name. |
ApplicationMetadata.Version |
getVersion()
Returns the metadata format version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APP_NS
| Constructor Detail |
|---|
public ApplicationMetadata(Document doc)
| Method Detail |
|---|
public List<DataStager> getInputs()
public List<DataStager> getOutputs()
public ApplicationInfo getInfo()
public ApplicationMetadata.Version getVersion()
public Document getDocument(ApplicationMetadata.Version version)
throws GridFailureException
GridFailureExceptionpublic boolean getDataStagerExists(String name)
getStager(String) != null).
public DataStager getStager(String name)
public boolean getInputExists(String name)
getDataStagerExists(String), but restricted
to inputs only.
public boolean getOutputExists(String name)
getDataStagerExists(String), but restricted
to outputs only.
public String[] getRequiredInputStagerNames(ApplicationMetadata.Version version)
public String[] getRequiredOutputStagerNames(ApplicationMetadata.Version version)
public List<Parameter> getParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||