gr.uoa.di.madgik.workflow.adaptor.utils.jdl
Class JDLDAGExtractor
java.lang.Object
gr.uoa.di.madgik.workflow.adaptor.utils.jdl.JDLDAGExtractor
public class JDLDAGExtractor
- extends Object
The Class JDLDAGExtractor 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.ParsingMode (optional)
- ParsedJDLInfo.KnownKeys.Max_Running_Nodes (optional)
- ParsedJDLInfo.KnownKeys.Rank (optional)
- ParsedJDLInfo.KnownKeys.Requirements (optional)
- ParsedJDLInfo.KnownKeys.NodesCollocation (optional)
- ParsedJDLInfo.KnownKeys.ConnectionMode (optional)
- ParsedJDLInfo.KnownKeys.Nodes (optional)
- ParsedJDLInfo.KnownKeys.Dependencies (optional)
For every Node described in the DAG, the ParsedJDLInfo.KnownKeys.Description value is extracted
and is used to populate a new ParsedJDLInfo, contained in the ParsedJDLInfo produced by
the JDLDAGExtractor, using the JDLJobExtractor.
The Keys are expected to be found with the exact capitalization that is defined for each key. The dependency
list retrieve by the ParsedJDLInfo.KnownKeys.Dependencies are expected to be defined in pairs. No
inner list expression is supported. The ParsedJDLInfo.KnownKeys.InputSandbox is not supported at the
level of DAG. This means that every node needs to define its own Input Sandbox and cannot reference the
global one.
TODO:
- Fix capitalization requirement
- Support inner list definition of dependencies
- Author:
- gpapanikos
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDLDAGExtractor
public JDLDAGExtractor(Map<String,String> KeyValues)
- Instantiates a new JDL DAG 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 © 2013. All Rights Reserved.