gr.uoa.di.madgik.workflow.adaptor.utils.jdl
Class JDLJobExtractor
java.lang.Object
gr.uoa.di.madgik.workflow.adaptor.utils.jdl.JDLJobExtractor
public class JDLJobExtractor
- extends Object
The Class JDLJobExtractor operates on a previously extracted map of the keys and their respective values
contained in the provided JDL description. The extractor will scan through the map for known keys and process
their respective values to populate the produced ParsedJDLInfo. The known keys which the extractor
looks for in the provided map are the following:
- ParsedJDLInfo.KnownKeys.JobType (mandatory)
- ParsedJDLInfo.KnownKeys.Executable (mandatory)
- ParsedJDLInfo.KnownKeys.Arguments (optional)
- ParsedJDLInfo.KnownKeys.StdInput (optional)
- ParsedJDLInfo.KnownKeys.StdOutput (optional)
- ParsedJDLInfo.KnownKeys.StdError (optional)
- ParsedJDLInfo.KnownKeys.InputSandbox (optional)
- ParsedJDLInfo.KnownKeys.OutputSandbox (optional)
- ParsedJDLInfo.KnownKeys.Environment (optional)
- ParsedJDLInfo.KnownKeys.RetryCount (optional)
- ParsedJDLInfo.KnownKeys.ShallowRetryCount (optional)
- ParsedJDLInfo.KnownKeys.RetryInterval (optional)
- ParsedJDLInfo.KnownKeys.Rank (optional)
- ParsedJDLInfo.KnownKeys.Requirements (optional)
- ParsedJDLInfo.KnownKeys.ConnectionMode (optional)
The Keys are expected to be found with the exact capitalization that is defined for each key. No distinction
between the two ParsedJDLInfo.KnownKeys.RetryCount and ParsedJDLInfo.KnownKeys.ShallowRetryCount
is made.
TODO:
- Fix capitalization requirement
- Author:
- gpapanikos
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDLJobExtractor
public JDLJobExtractor(Map<String,String> KeyValues)
- Instantiates a new jDL job extractor.
- Parameters:
KeyValues - the key values
ProcessKeys
public ParsedJDLInfo ProcessKeys()
throws WorkflowValidationException
- Process keys.
- Returns:
- the parsed jdl info
- Throws:
WorkflowValidationException - the workflow validation exception
Copyright © 2012. All Rights Reserved.