public class Task extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
META_TASK_SUBMIT_VALUE
Metadata value used by special purpose executors
|
Constructor and Description |
---|
Task(TaskId taskId,
List<Task> childrenTasks)
This constructor makes a "container only" task.
|
Task(TaskId taskId,
TaskType taskType) |
Task(TaskId taskId,
TaskType taskType,
List<Task> childrenTasks) |
Task(TaskId taskId,
TaskType taskType,
List<Task> childrenTasks,
Map<String,String> metaData) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Task> |
getChildrenTasks() |
Map<String,String> |
getMetaData() |
TaskId |
getTaskId() |
TaskType |
getTaskType() |
int |
hashCode() |
boolean |
isExecutable() |
static Map<String,String> |
makeSpecialMeta(long value)
Utility to create a new meta map with the given submit value
|
String |
toString() |
public static final String META_TASK_SUBMIT_VALUE
public Task(TaskId taskId, TaskType taskType)
taskId
- this task's ID - must be uniquetaskType
- the task typepublic Task(TaskId taskId, List<Task> childrenTasks)
taskId
- this task's ID - must be uniquechildrenTasks
- child tasks - children are not executed until this task completespublic Task(TaskId taskId, TaskType taskType, List<Task> childrenTasks)
taskId
- this task's ID - must be uniquetaskType
- the task typechildrenTasks
- child tasks - children are not executed until this task completespublic static Map<String,String> makeSpecialMeta(long value)
value
- the submit valuepublic TaskId getTaskId()
public TaskType getTaskType()
public boolean isExecutable()
Copyright © 2014–2018 Nirmata. All rights reserved.