Class BuilderUtility
java.lang.Object
org.tasktide.core.manager.BuilderUtility
Various static methods to make
TaskTideModel objects-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StepBuild an emptyStepstatic TaskLoggingBuild an emptyTaskLoggingstatic WorkflowBuild an emptyWorkflowstatic WorkloadBuild an emptyWorkloadstatic ItemTaskbuildItemTask(String taskName, String taskScript) Build newItemTaskthroughManagerTaskstatic ManagerTaskbuildManagerTask(String taskName, String taskScript) Make aManagerTaskwith supplied task name, and scriptstatic ManagerTaskbuildManagerTask(String taskName, String taskScript, String stepName) Make aManagerTaskwith supplied task name, script, and collection namestatic ManagerTaskbuildManagerTask(String taskName, String taskScript, String stepName, CustomAnnotation anno) Make aManagerTaskwith supplied task name, script, collection name, and annotationsstatic ProcessLogbuildProcessLog(String[] stdout, String[] stderr) Build aProcessLogfrom stdout/err string[]static ProcessLogbuildProcessLog(String procLogId, String[] stdout, String[] stderr) Build aProcessLogfrom stdout/err string[]static StepMake aStepstatic StepMake aStepstatic TaskLoggingbuildTaskLogging(String taskLogId, ProcessLog procLog) Build aTaskLoggingwith aProcessLogstatic TaskLoggingbuildTaskLogging(ProcessLog procLog) Build aTaskLoggingwith aProcessLogstatic TaskLoggingbuildTaskLogging(ProcessLog procLog, Process proc) BuildTaskLoggingfromProcessLogand processstatic WorkflowbuildWorkflow(String workflowName) BuildWorkflowstatic WorkflowbuildWorkflow(List<Step> steps, String workflowName) BuildWorkflowstatic WorkflowbuildWorkflow(List<Step> steps, String workflowId, String workflowName) BuildWorkflowstatic WorkItembuildWorkItem(String itemId, String itemName, Workload workload, String stepName) static WorkItemBuild with StepIdstatic WorkItembuildWorkItem(String itemName, Workload workload, String stepName) static WorkItembuildWorkItem(String itemName, Workload workload, String stepName, String stepId) Build with stepIdstatic WorkloadbuildWorkload(String workloadId, List<ItemTask> tasks) static WorkloadbuildWorkload(String workloadId, ItemTask itemTask) static WorkloadbuildWorkload(List<ItemTask> tasks) static WorkloadbuildWorkload(ItemTask itemTask) static ManagerTaskFetch ping taskstatic List<ManagerTask> getPingTasks(int nTasks) Generate list of random ping tasksstatic ManagerTaskFetch seq taskstatic List<ManagerTask> getSeqTasks(int nTasks) Generate list of random seq tasksstatic CustomAnnotationmakeAnnotation(Map<String, Object> data) MakeCustomAnnotationfrom data mapstatic CustomAnnotationBuild an emptyCustomAnnotationstatic ProcessLogBuild an emptyProcessLog
-
Constructor Details
-
BuilderUtility
public BuilderUtility()
-
-
Method Details
-
makeAnnotation
MakeCustomAnnotationfrom data map- Parameters:
data-- Returns:
CustomAnnotation
-
makeEmptyAnnotation
Build an emptyCustomAnnotation- Returns:
CustomAnnotation
-
makeEmptyProcessLog
-
buildProcessLog
Build aProcessLogfrom stdout/err string[]- Parameters:
stdout-stderr-- Returns:
ProcessLog
-
buildProcessLog
Build aProcessLogfrom stdout/err string[]- Parameters:
procLogId-stdout-stderr-- Returns:
ProcessLog
-
buildEmptyTaskLogging
Build an emptyTaskLogging- Returns:
- Empty
TaskLogging
-
buildTaskLogging
Build aTaskLoggingwith aProcessLog- Parameters:
procLog-- Returns:
TaskLogging
-
buildTaskLogging
BuildTaskLoggingfromProcessLogand process- Parameters:
procLog-proc-- Returns:
TaskLogging
-
buildTaskLogging
Build aTaskLoggingwith aProcessLog- Parameters:
taskLogId-procLog-- Returns:
TaskLogging
-
buildEmptyWorkload
-
buildWorkload
-
buildWorkload
-
buildWorkload
-
buildWorkload
-
buildWorkItem
-
buildWorkItem
-
buildWorkItem
-
buildWorkItem
-
buildEmptyStep
-
buildStep
-
buildStep
-
buildEmptyWorkflow
-
buildWorkflow
-
buildWorkflow
-
buildWorkflow
-
buildManagerTask
public static ManagerTask buildManagerTask(String taskName, String taskScript, String stepName, CustomAnnotation anno) Make aManagerTaskwith supplied task name, script, collection name, and annotations- Parameters:
taskName-taskScript-stepName-anno-- Returns:
ManagerTask
-
buildManagerTask
Make aManagerTaskwith supplied task name, script, and collection name- Parameters:
taskName-taskScript-stepName-- Returns:
ManagerTask
-
buildManagerTask
Make aManagerTaskwith supplied task name, and script- Parameters:
taskName-taskScript-- Returns:
ManagerTask
-
buildItemTask
-
getSeqTask
-
getPingTask
-
getPingTasks
Generate list of random ping tasks- Parameters:
nTasks-- Returns:
- List-
ManagerTask
-
getSeqTasks
Generate list of random seq tasks- Parameters:
nTasks-- Returns:
- List-
ManagerTask
-