org.jclouds.vcloud.domain
Interface Task

All Superinterfaces:
Comparable<ReferenceType>, ReferenceType
All Known Implementing Classes:
TaskImpl

public interface Task
extends ReferenceType

Whenever the result of a request cannot be returned immediately, the server creates a Task object. Tasks owned by an object such as a vApp or vDC are contained in the Tasks element of the object’s XML representation. This element is read‐only.


Method Summary
 Date getEndTime()
          date and time when the task completed.
 VCloudError getError()
          error message or related information returned by the task
 Date getExpiryTime()
          date and time at which the task expires.
 String getOperation()
          The current status of the task.
 ReferenceType getOwner()
          A link to the object that owns the task.
 Date getStartTime()
          date and time when the task was started.
 TaskStatus getStatus()
          The current status of the task.
 
Methods inherited from interface org.jclouds.vcloud.domain.ReferenceType
getHref, getName, getType
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getOperation

String getOperation()
The current status of the task.


getStatus

TaskStatus getStatus()
The current status of the task.


getStartTime

Date getStartTime()
date and time when the task was started.


getEndTime

Date getEndTime()
date and time when the task completed. Does not appear for running tasks.


getExpiryTime

Date getExpiryTime()
date and time at which the task expires. By default, tasks expire 24 hours after their start time. Expired tasks cannot be queried.


getOwner

ReferenceType getOwner()
A link to the object that owns the task. For copy operations, the owner is the copy that is being created. For delete operations, the owner is the deleted object, so this element is not included. For all other operations, the owner is the object to which the request was made.


getError

@Nullable
VCloudError getError()
error message or related information returned by the task



Copyright © 2009-2012 jclouds. All Rights Reserved.