com.xensource.xenapi
Class Task.Record

java.lang.Object
  extended by com.xensource.xenapi.Task.Record
All Implemented Interfaces:
Types.Record
Enclosing class:
Task

public static class Task.Record
extends java.lang.Object
implements Types.Record

Represents all the fields in a Task


Field Summary
 java.util.Set<Types.TaskAllowedOperations> allowedOperations
          list of the operations allowed in this state.
 java.util.Date created
          Time task was created
 java.util.Map<java.lang.String,Types.TaskAllowedOperations> currentOperations
          links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.
 java.util.Set<java.lang.String> errorInfo
          if the task has failed, this field contains the set of associated error strings.
 java.util.Date finished
          Time task finished (i.e.
 java.lang.String nameDescription
          a notes field containg human-readable description
 java.lang.String nameLabel
          a human-readable name
 java.util.Map<java.lang.String,java.lang.String> otherConfig
          additional configuration
 java.lang.Double progress
          if the task is still pending, this field contains the estimated fraction complete (0.-1.).
 Host residentOn
          the host on which the task is running
 java.lang.String result
          if the task has completed successfully, this field contains the result value (either Void or an object reference).
 Types.TaskStatusType status
          current status of the task
 Task subtaskOf
          Ref pointing to the task this is a substask of.
 java.util.Set<Task> subtasks
          List pointing to all the substasks.
 java.lang.String type
          if the task has completed successfully, this field contains the type of the encoded result (i.e.
 java.lang.String uuid
          Unique identifier/object reference
 
Constructor Summary
Task.Record()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> toMap()
          Convert a task.Record to a Map
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uuid

public java.lang.String uuid
Unique identifier/object reference


nameLabel

public java.lang.String nameLabel
a human-readable name


nameDescription

public java.lang.String nameDescription
a notes field containg human-readable description


allowedOperations

public java.util.Set<Types.TaskAllowedOperations> allowedOperations
list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client.


currentOperations

public java.util.Map<java.lang.String,Types.TaskAllowedOperations> currentOperations
links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.


created

public java.util.Date created
Time task was created


finished

public java.util.Date finished
Time task finished (i.e. succeeded or failed). If task-status is pending, then the value of this field has no meaning


status

public Types.TaskStatusType status
current status of the task


residentOn

public Host residentOn
the host on which the task is running


progress

public java.lang.Double progress
if the task is still pending, this field contains the estimated fraction complete (0.-1.). If task has completed (successfully or unsuccessfully) this should be 1.


type

public java.lang.String type
if the task has completed successfully, this field contains the type of the encoded result (i.e. name of the class whose reference is in the result field). Undefined otherwise.


result

public java.lang.String result
if the task has completed successfully, this field contains the result value (either Void or an object reference). Undefined otherwise.


errorInfo

public java.util.Set<java.lang.String> errorInfo
if the task has failed, this field contains the set of associated error strings. Undefined otherwise.


otherConfig

public java.util.Map<java.lang.String,java.lang.String> otherConfig
additional configuration


subtaskOf

public Task subtaskOf
Ref pointing to the task this is a substask of.


subtasks

public java.util.Set<Task> subtasks
List pointing to all the substasks.

Constructor Detail

Task.Record

public Task.Record()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMap

public java.util.Map<java.lang.String,java.lang.Object> toMap()
Convert a task.Record to a Map

Specified by:
toMap in interface Types.Record