|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.jobmanager.internal.JobRun
public class JobRun
Class representing the data for a job run (the JobDefinition, the WorkflowDefinition, WorkerDefinitions, Buckets, etc.).
| Constructor Summary | |
|---|---|
JobRun(java.lang.String runId,
java.lang.String jobName,
RunStorage runStorage,
DefinitionPersistence definitions,
TaskGeneratorProvider taskGeneratorProvider)
Constructs the job run data for a job run. |
|
| Method Summary | |
|---|---|
Bucket |
getBucket(java.lang.String bucketName)
|
Bucket |
getBucketForInputSlot(WorkflowAction action,
java.lang.String slotName)
|
Bucket |
getBucketForOutputSlot(WorkflowAction action,
java.lang.String slotName)
|
java.util.Collection<Bucket> |
getBuckets()
|
java.util.List<Task> |
getFollowupTasks(java.lang.String workflowRunId,
MultiValueMap<java.lang.String,BulkInfo> bucketNameToReallyCreatedBulksMap,
java.util.Map<java.lang.String,java.lang.String> taskParamsToCopy)
Gets the follow-up tasks for workers within the actual workflow run depending on a list of bulks. |
java.util.List<Task> |
getInitialRunOnceTasks(java.lang.String workflowRunId)
get initial tasks for run once job run. |
Task |
getInitialTask(java.lang.String workerName,
java.lang.String workflowRunId)
Creates the initial task for this job run's new workflow run. |
JobDefinition |
getJobDefinition()
|
java.lang.String |
getJobName()
|
java.lang.String |
getJobRunId()
|
java.util.Collection<Bucket> |
getTriggerBuckets()
|
java.util.List<Task> |
getTriggeredInitialTasks(MultiValueMap<java.lang.String,BulkInfo> bucketNameToReallyCreatedBulksMap)
Gets the follow-up tasks for workers within the actual workflow run depending on a list of bulks. |
WorkerDefinition |
getWorkerDefinition(java.lang.String workerName)
|
WorkflowDefinition |
getWorkflowDefinition()
|
boolean |
isTriggeredBy(Bucket triggeringBucket)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobRun(java.lang.String runId,
java.lang.String jobName,
RunStorage runStorage,
DefinitionPersistence definitions,
TaskGeneratorProvider taskGeneratorProvider)
throws java.lang.Exception
runId - the id of the run.jobName - The job name.runStorage - The runStorage.definitions - The DefinitionPersistence where the definitions can be retrieved (e.g. WorkerDefinition).taskGeneratorProvider - The TaskGeneratorProvider is used to select a TaskGenerator for generating new tasks
java.lang.Exception - An exception if something goes wrong| Method Detail |
|---|
public WorkerDefinition getWorkerDefinition(java.lang.String workerName)
workerName - The name of the WorkerDefinition.
public java.lang.String getJobName()
public java.lang.String getJobRunId()
public JobDefinition getJobDefinition()
public WorkflowDefinition getWorkflowDefinition()
public java.util.Collection<Bucket> getBuckets()
public Bucket getBucket(java.lang.String bucketName)
bucketName - the bucket's name.
public Bucket getBucketForInputSlot(WorkflowAction action,
java.lang.String slotName)
action - the action for which the input bucket should be looked up.slotName - an input slot name of this worker
public Bucket getBucketForOutputSlot(WorkflowAction action,
java.lang.String slotName)
action - the action for which the input bucket should be looked up.slotName - an output slot name of this worker
public Task getInitialTask(java.lang.String workerName,
java.lang.String workflowRunId)
throws JobManagerException
workerName - The name of the worker requesting the initial task.workflowRunId - The id for the new workflow run.
JobManagerException - An error occurred while checking if an initial task could be created or while creating the initial task.
public java.util.List<Task> getFollowupTasks(java.lang.String workflowRunId,
MultiValueMap<java.lang.String,BulkInfo> bucketNameToReallyCreatedBulksMap,
java.util.Map<java.lang.String,java.lang.String> taskParamsToCopy)
throws TaskGeneratorException
workflowRunId - The id of the current workflow run.bucketNameToReallyCreatedBulksMap - The bulks potentially triggering tasks for follow up workers.taskParamsToCopy - the parameters from the current task to copy to the follow up tasks
TaskGeneratorException - error while generating new tasks
public java.util.List<Task> getInitialRunOnceTasks(java.lang.String workflowRunId)
throws TaskGeneratorException
TaskGeneratorExceptionpublic boolean isTriggeredBy(Bucket triggeringBucket)
triggeringBucket - a bucket changed by another workflow
public java.util.Collection<Bucket> getTriggerBuckets()
public java.util.List<Task> getTriggeredInitialTasks(MultiValueMap<java.lang.String,BulkInfo> bucketNameToReallyCreatedBulksMap)
throws TaskGeneratorException
bucketNameToReallyCreatedBulksMap - The bulks potentially triggering tasks for follow up workers.
TaskGeneratorException - error while generating new tasks
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||