org.jclouds.ec2.domain
Class BundleTask

java.lang.Object
  extended by org.jclouds.ec2.domain.BundleTask
All Implemented Interfaces:
Comparable<BundleTask>

public class BundleTask
extends Object
implements Comparable<BundleTask>

Author:
Adrian Cole
See Also:

Nested Class Summary
static class BundleTask.Error
          If the task fails, a description of the error.
 
Constructor Summary
BundleTask(String region, String bundleId, BundleTask.Error error, String instanceId, int progress, Date startTime, String state, String bucket, String prefix, Date updateTime)
           
 
Method Summary
 int compareTo(BundleTask o)
          
 boolean equals(Object obj)
           
 String getBucket()
           
 String getBundleId()
           
 BundleTask.Error getError()
           
 String getInstanceId()
           
 String getPrefix()
           
 int getProgress()
           
 String getRegion()
           
 Date getStartTime()
           
 String getState()
           
 Date getUpdateTime()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleTask

public BundleTask(String region,
                  String bundleId,
                  @Nullable
                  BundleTask.Error error,
                  String instanceId,
                  int progress,
                  Date startTime,
                  String state,
                  String bucket,
                  String prefix,
                  Date updateTime)
Method Detail

compareTo

public int compareTo(BundleTask o)

Specified by:
compareTo in interface Comparable<BundleTask>

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getRegion

public String getRegion()
Returns:
region of the bundle task

getBucket

public String getBucket()
Returns:
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone e lse, Amazon EC2 returns an error.

getPrefix

public String getPrefix()
Returns:
Specifies the beginning of the file name of the AMI.

getBundleId

public String getBundleId()
Returns:
Identifier for this task.

getError

public BundleTask.Error getError()
Returns:
If the task fails, a description of the error.

getInstanceId

public String getInstanceId()
Returns:
Instance associated with this bundle task

getProgress

public int getProgress()
Returns:
A percentage description of the progress of the task, such as 20.

getStartTime

public Date getStartTime()
Returns:
The time this task started.

getState

public String getState()
Returns:
The state of the task.

getUpdateTime

public Date getUpdateTime()
Returns:
The time of the most recent update for the task.


Copyright © 2009-2012 jclouds. All Rights Reserved.