ResultT - type of the result returned by the tasks in the groupTaskT - type of the tasks in the group that can return a valuepublic class TaskGroup<ResultT,TaskT extends TaskItem<ResultT>> extends DAGraph<TaskT,com.microsoft.azure.management.resources.fluentcore.dag.TaskGroupEntry<ResultT,TaskT>>
TaskItem and associated
dependency information.| Modifier and Type | Class and Description |
|---|---|
static interface |
TaskGroup.HasTaskGroup<T,U extends TaskItem<T>>
An interface representing a type that is a part of TaskGroup.
|
| Constructor and Description |
|---|
TaskGroup(String rootTaskItemId,
TaskT rootTaskItem,
TaskGroupTerminateOnErrorStrategy taskGroupTerminateOnErrorStrategy)
Creates TaskGroup.
|
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<ResultT> |
executeAsync()
Executes tasks in the group.
|
void |
merge(TaskGroup<ResultT,TaskT> parentTaskGroup)
Merge this group with the given group containing root task depends on this group.
|
ResultT |
taskResult(String taskId)
Gets the result produced by a task in the group.
|
getNext, getNode, hasParent, isPreparer, isRootNode, merge, mergeChildToParent, prepare, reportCompletion, reportErrorpublic TaskGroup(String rootTaskItemId, TaskT rootTaskItem, TaskGroupTerminateOnErrorStrategy taskGroupTerminateOnErrorStrategy)
rootTaskItemId - the id of the root task in the grouprootTaskItem - the root tasktaskGroupTerminateOnErrorStrategy - group termination strategy to be used on errorpublic ResultT taskResult(String taskId)
taskId - the task item idpublic void merge(TaskGroup<ResultT,TaskT> parentTaskGroup)
parentTaskGroup - the parent task grouppublic rx.Observable<ResultT> executeAsync()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/