Package jline.io
Class WfCommonsOptions
java.lang.Object
jline.io.WfCommonsOptions
Options for loading WfCommons workflow files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDistribution type to use for task service times. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WfCommonsOptionsCreate options with deterministic service times.static WfCommonsOptionsCreate options with exponential distribution.doubleGet the default runtime when execution data is missing.doubleGet the default SCV for APH/HyperExp distributions.Get the distribution type.booleanCheck if child and parent references fall back to task names when no task id matches.booleanCheck if metadata should be stored.booleanCheck if execution data should be used.setDefaultRuntime(double defaultRuntime) Set the default runtime when execution data is missing.setDefaultSCV(double defaultSCV) Set the default SCV for APH/HyperExp distributions.setDistributionType(WfCommonsOptions.DistributionType distributionType) Set the distribution type for task service times.setResolveChildrenByName(boolean resolveChildrenByName) Set whether a child or parent reference that matches no task id is looked up among the task names.setStoreMetadata(boolean storeMetadata) Set whether to store WfCommons metadata in activities.setUseExecutionData(boolean useExecutionData) Set whether to use execution data if available.
-
Constructor Details
-
WfCommonsOptions
public WfCommonsOptions()Create options with default values.
-
-
Method Details
-
getDistributionType
Get the distribution type.- Returns:
- Distribution type
-
setDistributionType
Set the distribution type for task service times.- Parameters:
distributionType- Distribution type- Returns:
- this for chaining
-
getDefaultSCV
public double getDefaultSCV()Get the default SCV for APH/HyperExp distributions.- Returns:
- Default SCV
-
setDefaultSCV
Set the default SCV for APH/HyperExp distributions.- Parameters:
defaultSCV- Default SCV value- Returns:
- this for chaining
-
getDefaultRuntime
public double getDefaultRuntime()Get the default runtime when execution data is missing.- Returns:
- Default runtime in seconds
-
setDefaultRuntime
Set the default runtime when execution data is missing.- Parameters:
defaultRuntime- Default runtime in seconds- Returns:
- this for chaining
-
isUseExecutionData
public boolean isUseExecutionData()Check if execution data should be used.- Returns:
- true if execution data is used
-
setUseExecutionData
Set whether to use execution data if available.- Parameters:
useExecutionData- true to use execution data- Returns:
- this for chaining
-
isStoreMetadata
public boolean isStoreMetadata()Check if metadata should be stored.- Returns:
- true if metadata is stored
-
setStoreMetadata
Set whether to store WfCommons metadata in activities.- Parameters:
storeMetadata- true to store metadata- Returns:
- this for chaining
-
isResolveChildrenByName
public boolean isResolveChildrenByName()Check if child and parent references fall back to task names when no task id matches.- Returns:
- true if children are resolved by id, then by unique task name
-
setResolveChildrenByName
Set whether a child or parent reference that matches no task id is looked up among the task names.The Pegasus traces of schema 1.4 (e.g. Montage) give each task an id such as
ID0000001but list children and parents by name (mBackground_ID0000013), so an id-only lookup drops every edge. A name shared by several tasks is ambiguous and does not resolve. A reference that resolves to no task is reported by a warning and dropped. Default true; false restores the id-only lookup.- Parameters:
resolveChildrenByName- true to resolve by id, then by unique task name- Returns:
- this for chaining
-
exponential
Create options with exponential distribution.- Returns:
- Options configured for exponential distribution
-
deterministic
Create options with deterministic service times.- Returns:
- Options configured for deterministic distribution
-