public static interface VcdTaskMonitor.MultiTaskTracker
TaskStatus of each
task identified by the task URN
Tasks to track can be added at any time until it is indicated to the tracker that all tasks
have been added and a tracking Future is requested. At that time, the tracker will
begin reconciling the results and make them available when all added tasks have completed and
their final results know via the tracking Future.
| Modifier and Type | Method and Description |
|---|---|
Future<Map<String,TaskStatus>> |
toTrackingFuture()
Indicate to the tracker that all tasks desirous to be tracked have been added to the
tracker.
|
void |
track(Collection<com.vmware.vcloud.api.rest.schema_v1_5.TaskType> tasks)
Add a list of tasks for the monitor to track.
|
void |
track(com.vmware.vcloud.api.rest.schema_v1_5.TaskType... tasks)
Add a list of tasks for the monitor to track.
|
void track(com.vmware.vcloud.api.rest.schema_v1_5.TaskType... tasks)
throws IllegalStateException
Tasks may be added until toTrackingFuture() is called to indicate that no more
tasks will be added to this tracker.
tasks - List of Tasks to be trackedIllegalStateException - if toTrackingFuture() has been called.void track(Collection<com.vmware.vcloud.api.rest.schema_v1_5.TaskType> tasks) throws IllegalStateException
Tasks may be added until toTrackingFuture() is called to indicate that no more
tasks will be added to this tracker.
tasks - List of Tasks to be trackedIllegalStateException - if toTrackingFuture() has been called.Future<Map<String,TaskStatus>> toTrackingFuture()
This will signal to the tracker to begin final reconciliation of the results.
Future representing the VcdTaskMonitor.MultiTaskTracker's activities. When
completion state of all status's is known the Future will be updated to
return a Map of task id's to TaskStatus. Canceling the
Future will stop the underlying tracking.Copyright © 2019 VMware. All rights reserved.