public final class AsyncTaskManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
_cacheTimer_Elapsed() |
void |
_timer_Elapsed() |
void |
AddStoragePoolExistingTasks(storage_pool sp)
Retrieves from the specified storage pool the tasks that exist on it and
adds them to the manager.
|
boolean |
CachingOver(SPMAsyncTask task)
Check if task should be cached or not.
|
void |
CancelTask(Guid taskID) |
void |
CancelTasks(List<Guid> taskList)
Stops all tasks, and set them to polling state, for clearing them up later.
|
Guid |
CreateTask(AsyncTaskType taskType,
AsyncTaskParameters taskParameters,
boolean pollingEnabled) |
boolean |
EntityHasTasks(Guid id) |
static AsyncTaskManager |
getInstance() |
boolean |
HasTasksByStoragePoolId(Guid storagePoolID) |
boolean |
hasTasksForEntityIdAndAction(Guid id,
VdcActionType type) |
void |
InitAsyncTaskManager() |
ArrayList<AsyncTaskStatus> |
PollTasks(ArrayList<Guid> taskIdList) |
void |
StartPollingTask(Guid taskID) |
void |
StopStoragePoolTasks(storage_pool sp)
Retrieves all tasks from the specified storage pool and stops them.
|
boolean |
StoragePoolHasUnclearedTasks(Guid storagePoolId) |
void |
UpdateTaskWithActionParameters(Guid taskID,
VdcActionParametersBase actionParameters) |
public static AsyncTaskManager getInstance()
public void InitAsyncTaskManager()
public void _timer_Elapsed()
public void _cacheTimer_Elapsed()
public boolean CachingOver(SPMAsyncTask task)
task
- - Asynchronous task we check to cache or not.public boolean HasTasksByStoragePoolId(Guid storagePoolID)
public boolean hasTasksForEntityIdAndAction(Guid id, VdcActionType type)
public Guid CreateTask(AsyncTaskType taskType, AsyncTaskParameters taskParameters, boolean pollingEnabled)
public void UpdateTaskWithActionParameters(Guid taskID, VdcActionParametersBase actionParameters)
public void StartPollingTask(Guid taskID)
public ArrayList<AsyncTaskStatus> PollTasks(ArrayList<Guid> taskIdList)
public void AddStoragePoolExistingTasks(storage_pool sp)
sp
- the storage pool to retrieve running tasks frompublic void StopStoragePoolTasks(storage_pool sp)
sp
- public void CancelTasks(List<Guid> taskList)
taskList
- - List of tasks to stop.public void CancelTask(Guid taskID)
public boolean EntityHasTasks(Guid id)
public boolean StoragePoolHasUnclearedTasks(Guid storagePoolId)
Copyright © 2012. All Rights Reserved.