Package org.jclouds.ec2.domain
Class BundleTask
- java.lang.Object
-
- org.jclouds.ec2.domain.BundleTask
-
- All Implemented Interfaces:
Comparable<BundleTask>
public class BundleTask extends Object implements Comparable<BundleTask>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBundleTask.ErrorIf the task fails, a description of the error.
-
Constructor Summary
Constructors Constructor Description BundleTask(String region, String bundleId, BundleTask.Error error, String instanceId, int progress, Date startTime, String state, String bucket, String prefix, Date updateTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(BundleTask o)booleanequals(Object obj)StringgetBucket()StringgetBundleId()BundleTask.ErrorgetError()StringgetInstanceId()StringgetPrefix()intgetProgress()StringgetRegion()Deprecated.DategetStartTime()StringgetState()DategetUpdateTime()inthashCode()StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(BundleTask o)
- Specified by:
compareToin interfaceComparable<BundleTask>
-
getRegion
@Deprecated public String getRegion()
Deprecated.To be removed in jclouds 1.6Warning
Especially on EC2 clones that may not support regions, this value is fragile. Consider alternate means to determine context.
-
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.
-
-