public final class AsyncTaskFactory extends Object
| Constructor and Description |
|---|
AsyncTaskFactory() |
| Modifier and Type | Method and Description |
|---|---|
static SPMAsyncTask |
Construct(AsyncTaskCreationInfo creationInfo)
Constructs a task based on creation info (task type and task parameters
as retrieved from the vdsm).
|
static SPMAsyncTask |
Construct(AsyncTaskType taskType,
AsyncTaskParameters asyncTaskParams)
Constructs a task based on its type and the task type's parameters.
|
public static SPMAsyncTask Construct(AsyncTaskCreationInfo creationInfo)
taskID - the ID of the task to construct.pollingEnabled - true if we want to start polling the task, false otherwise.creationInfo - the info by which we construct the task.public static SPMAsyncTask Construct(AsyncTaskType taskType, AsyncTaskParameters asyncTaskParams)
taskID - the ID of the task to construct.pollingEnabled - true if we want to start polling the task, false otherwise.taskType - the type of the task which we want to construct.asyncTaskParams - the parameters by which we construct the task.Copyright © 2012. All Rights Reserved.