public class JDLParser extends Object implements IWorkflowParser
IWorkflowParser that is capable of parsing a JDL description
that formulates a job or a DAG of jobs. Depending on the type of the JDL, the actual parsing is forwarded to the
two supporting parsers, JDLJobExtractor and JDLDAGExtractor.| Modifier and Type | Field and Description |
|---|---|
ParsedJDLInfo |
Internal
The information parsed
|
| Constructor and Description |
|---|
JDLParser() |
| Modifier and Type | Method and Description |
|---|---|
IParsedInfo |
GetParsedInfo()
Retrieves the information parsed.
|
void |
Parse(File serialization)
Parses the string the workflow language that is contained in the provided file that the parser
is implemented for
|
void |
Parse(String serialization)
Parses the string serialization of the workflow language that the parser is implemented for
|
public ParsedJDLInfo Internal
public void Parse(File serialization) throws WorkflowSerializationException, WorkflowValidationException
IWorkflowParserParse in interface IWorkflowParserserialization - The file containing the workflow descriptionWorkflowSerializationException - Problem with the serialization of the provided workflowWorkflowValidationException - Problem with the validity of some elementpublic void Parse(String serialization) throws WorkflowSerializationException, WorkflowValidationException
IWorkflowParserParse in interface IWorkflowParserserialization - the serialization of the workflow in some languageWorkflowSerializationException - Problem with the serialization of the provided workflowWorkflowValidationException - Problem with the validity of some elementpublic IParsedInfo GetParsedInfo()
IWorkflowParserIWorkflowParser.Parse(File) or IWorkflowParser.Parse(String)GetParsedInfo in interface IWorkflowParserCopyright © 2014. All Rights Reserved.