Chapter 14. Task and ScheduledTask
This chapter introduces tasks and scheduled tasks. It describes how to manage and monitor tasks, how to retrieve results from asynchronized API calls, and how to retrieve historical tasks. The introduction of task management covers three managed objects: Task
, which represents a running operation; TaskManager
, which manages the Task
objects; and TaskHistoryCollector
, which provides interfaces to retrieve previous tasks.
The second half of this chapter introduces how to schedule an operation to run in the future, once or repetitively. ScheduledTask
represents a scheduled task to be activated in the future. ScheduledTaskManager
manages all the ScheduledTask
objects.
Managed Objects: Task
, TaskManager
, TaskHistoryCollector ...
Get VMware VI and vSphere SDK: Managing the VMware Infrastructure and vSphere now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.