org.jclouds.vcloud.director.v1_5.features
Interface TaskApi


public interface TaskApi

Provides synchronous access to Task objects.

Author:
grkvlt@apache.org, Adrian Cole
See Also:
TaskAsyncApi

Method Summary
 void cancel(String taskUrn)
          Cancels a task.
 void cancel(URI taskHref)
           
 Task get(String taskUrn)
          Retrieves a task.
 Task get(URI taskHref)
           
 TasksList getTasksList(URI tasksListHref)
          Retrieves a list of tasks.
 

Method Detail

getTasksList

TasksList getTasksList(URI tasksListHref)
Retrieves a list of tasks.
 GET /tasksList/{id}
 

Parameters:
tasksListUrn - from Org#getLinks() where Link#getType is VCloudDirectorMediaType#TASKS_LIST
Returns:
a list of tasks

get

Task get(String taskUrn)
Retrieves a task.
 GET /task/{id}
 

Returns:
the task or null if not found

get

Task get(URI taskHref)

cancel

void cancel(String taskUrn)
Cancels a task.
 POST /task/{id}/action/cancel
 


cancel

void cancel(URI taskHref)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.