org.jclouds.vcloud.domain.internal
Class TaskImpl

java.lang.Object
  extended by org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
      extended by org.jclouds.vcloud.domain.internal.TaskImpl
All Implemented Interfaces:
Comparable<ReferenceType>, ReferenceType, Task

public class TaskImpl
extends ReferenceTypeImpl
implements Task

Author:
Adrian Cole

Constructor Summary
TaskImpl(URI id, String operation, TaskStatus status, Date startTime, Date endTime, Date expiryTime, ReferenceType owner, VCloudError error)
           
 
Method Summary
 boolean equals(Object obj)
           
 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.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
compareTo, getHref, getName, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.vcloud.domain.ReferenceType
getHref, getName, getType
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

TaskImpl

public TaskImpl(URI id,
                String operation,
                TaskStatus status,
                Date startTime,
                @Nullable
                Date endTime,
                @Nullable
                Date expiryTime,
                ReferenceType owner,
                VCloudError error)
Method Detail

getStatus

public TaskStatus getStatus()
Description copied from interface: Task
The current status of the task.

Specified by:
getStatus in interface Task

getStartTime

public Date getStartTime()
Description copied from interface: Task
date and time when the task was started.

Specified by:
getStartTime in interface Task

getOwner

public ReferenceType getOwner()
Description copied from interface: Task
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.

Specified by:
getOwner in interface Task

getEndTime

public Date getEndTime()
Description copied from interface: Task
date and time when the task completed. Does not appear for running tasks.

Specified by:
getEndTime in interface Task

getError

public VCloudError getError()
Description copied from interface: Task
error message or related information returned by the task

Specified by:
getError in interface Task

toString

public String toString()
Overrides:
toString in class ReferenceTypeImpl

getExpiryTime

public Date getExpiryTime()
Description copied from interface: Task
date and time at which the task expires. By default, tasks expire 24 hours after their start time. Expired tasks cannot be queried.

Specified by:
getExpiryTime in interface Task

getOperation

public String getOperation()
Description copied from interface: Task
The current status of the task.

Specified by:
getOperation in interface Task

hashCode

public int hashCode()
Overrides:
hashCode in class ReferenceTypeImpl

equals

public boolean equals(Object obj)
Overrides:
equals in class ReferenceTypeImpl


Copyright © 2009-2012 jclouds. All Rights Reserved.