gr.uoa.di.madgik.workflow.adaptor.utils.jdl
Class ParsedJDLInfo

java.lang.Object
  extended by gr.uoa.di.madgik.workflow.adaptor.utils.jdl.ParsedJDLInfo
All Implemented Interfaces:
IParsedInfo

public class ParsedJDLInfo
extends Object
implements IParsedInfo

The Class ParsedJDLInfo acts as a container of information parsed for a single Job or a DAG of Jobs

Author:
gpapanikos

Nested Class Summary
static class ParsedJDLInfo.JobDescriptionType
          The JobDescriptionType.
static class ParsedJDLInfo.JobType
          The Recognized JobType.
static class ParsedJDLInfo.KnownKeys
          The know JDL keys that are supported.
static class ParsedJDLInfo.ParsingModeType
          The ParsingModeType.
 
Field Summary
 String Arguments
          The Arguments.
static int DefaultConcurrentRunningJobs
          The Default concurrent running jobs currently set to 10 nodes.
static long DefaultRetryInterval
          The Default retry interval currently set to 10 seconds.
 Map<String,List<String>> Dependencies
          The Dependencies that form the DAG
 List<gr.uoa.di.madgik.execution.utils.EnvironmentKeyValue> Environment
          The Environment.
 String Error
          The Error.
 String Executable
          The Executable.
 String Input
          The Input.
 List<String> InSandbox
          The In sandbox.
 ParsedJDLInfo.JobDescriptionType jobDescriptionType
          The job description type.
 ParsedJDLInfo.JobType jobType
          The job type.
 int MaxRunningNodes
          The Max running nodes.
 gr.uoa.di.madgik.execution.plan.PlanConfig.ConnectionMode ModeOfConnection
          The Mode of connection.
 ParsedJDLInfo.ParsingModeType ModeOfParsing
          The Mode of parsing.
 Map<String,ParsedJDLInfo> Nodes
          The information on the Nodes in case the JDL describes a DAG
 boolean NodesCollocation
          The Nodes collocation attribute
 String Output
          The Output.
 List<String> OutSandbox
          The Out sandbox.
 String Rank
          The Rank function
 String Requirements
          The Requirements function
 int RetryCount
          The Retry count.
 long RetryInterval
          The Retry interval.
 
Constructor Summary
ParsedJDLInfo()
           
 
Method Summary
 String GetCommonRequirements()
           
 String GetExtraRequirements(String nodeName)
           
 void SetConnectionMode(String mode)
          Sets the connection mode.
 void SetMaxRunningNodes(String number)
          Sets the max running nodes.
 void SetNodesCollocation(String collocation)
          Sets the node collocation attribute
 void SetParsingMode(String mode)
          Sets the parsing mode.
 void SetRetryCount(String counter)
          Sets the retry count.
 void SetRetryInterval(String interval)
          Sets the retry interval attribute.
 String ToXML()
          A draft XML presentation of the information stored in the instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultRetryInterval

public static long DefaultRetryInterval
The Default retry interval currently set to 10 seconds.


DefaultConcurrentRunningJobs

public static int DefaultConcurrentRunningJobs
The Default concurrent running jobs currently set to 10 nodes.


jobDescriptionType

public ParsedJDLInfo.JobDescriptionType jobDescriptionType
The job description type.


jobType

public ParsedJDLInfo.JobType jobType
The job type.


Executable

public String Executable
The Executable.


Arguments

public String Arguments
The Arguments.


Input

public String Input
The Input.


Output

public String Output
The Output.


Error

public String Error
The Error.


InSandbox

public List<String> InSandbox
The In sandbox.


OutSandbox

public List<String> OutSandbox
The Out sandbox.


Environment

public List<gr.uoa.di.madgik.execution.utils.EnvironmentKeyValue> Environment
The Environment.


RetryCount

public int RetryCount
The Retry count.


RetryInterval

public long RetryInterval
The Retry interval.


Rank

public String Rank
The Rank function


Requirements

public String Requirements
The Requirements function


NodesCollocation

public boolean NodesCollocation
The Nodes collocation attribute


Nodes

public Map<String,ParsedJDLInfo> Nodes
The information on the Nodes in case the JDL describes a DAG


Dependencies

public Map<String,List<String>> Dependencies
The Dependencies that form the DAG


MaxRunningNodes

public int MaxRunningNodes
The Max running nodes.


ModeOfParsing

public ParsedJDLInfo.ParsingModeType ModeOfParsing
The Mode of parsing.


ModeOfConnection

public gr.uoa.di.madgik.execution.plan.PlanConfig.ConnectionMode ModeOfConnection
The Mode of connection.

Constructor Detail

ParsedJDLInfo

public ParsedJDLInfo()
Method Detail

SetConnectionMode

public void SetConnectionMode(String mode)
Sets the connection mode.

Parameters:
mode - the mode

SetParsingMode

public void SetParsingMode(String mode)
Sets the parsing mode.

Parameters:
mode - the mode

SetMaxRunningNodes

public void SetMaxRunningNodes(String number)
Sets the max running nodes.

Parameters:
number - the maximum number of concurrently running nodes

SetRetryCount

public void SetRetryCount(String counter)
Sets the retry count. In cases of multiple invocations, only the largest value is stored

Parameters:
counter - the counter. The argument expected is a string representation of an integer

SetRetryInterval

public void SetRetryInterval(String interval)
Sets the retry interval attribute. In cases of multiple invocations, only the largest value is stored

Parameters:
interval - the interval. The argument expected is a string representation of a long

SetNodesCollocation

public void SetNodesCollocation(String collocation)
Sets the node collocation attribute

Parameters:
collocation - the collocation attribute value. The argument expected is a string representation of a boolean value

GetCommonRequirements

public String GetCommonRequirements()

GetExtraRequirements

public String GetExtraRequirements(String nodeName)

ToXML

public String ToXML()
A draft XML presentation of the information stored in the instance

Returns:
the serialization


Copyright © 2012. All Rights Reserved.