Package org.jclouds.ec2.domain
Class RunningInstance
- java.lang.Object
-
- org.jclouds.ec2.domain.RunningInstance
-
- All Implemented Interfaces:
Comparable<RunningInstance>
- Direct Known Subclasses:
AWSRunningInstance
public class RunningInstance extends Object implements Comparable<RunningInstance>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRunningInstance.Builder<T extends RunningInstance.Builder<T>>
-
Field Summary
Fields Modifier and Type Field Description protected StringamiLaunchIndexprotected StringavailabilityZoneprotected StringdnsNameprotected Map<String,BlockDevice>ebsBlockDevicesprotected Set<String>groupNamesprotected StringimageIdprotected StringinstanceIdprotected InstanceStateinstanceStateprotected StringinstanceTypeprotected StringipAddressprotected StringkernelIdprotected StringkeyNameprotected DatelaunchTimeprotected Stringplatformprotected StringprivateDnsNameprotected StringprivateIpAddressprotected StringramdiskIdprotected StringrawStateprotected Stringreasonprotected Stringregionprotected StringrootDeviceNameprotected RootDeviceTyperootDeviceTypeprotected Map<String,String>tagsprotected StringvirtualizationType
-
Constructor Summary
Constructors Modifier Constructor Description protectedRunningInstance(String region, Iterable<String> groupNames, String amiLaunchIndex, String dnsName, String imageId, String instanceId, InstanceState instanceState, String rawState, String instanceType, String ipAddress, String kernelId, String keyName, Date launchTime, String availabilityZone, String virtualizationType, String platform, String privateDnsName, String privateIpAddress, String ramdiskId, String reason, RootDeviceType rootDeviceType, String rootDeviceName, Map<String,BlockDevice> ebsBlockDevices, Map<String,String> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RunningInstance.Builder<?>builder()intcompareTo(RunningInstance other)booleanequals(Object obj)StringgetAmiLaunchIndex()The AMI launch index, which can be used to find this instance within the launch group.StringgetAvailabilityZone()The location where the instance launched.StringgetDnsName()The public DNS name assigned to the instance.Map<String,BlockDevice>getEbsBlockDevices()EBS volumes associated with the instance.Set<String>getGroupNames()Names of the security groups.StringgetId()Unique ID of the instance launched.StringgetImageId()Image ID of the AMI used to launch the instance.InstanceStategetInstanceState()The current state of the instance.StringgetInstanceType()The instance type.StringgetIpAddress()Specifies the IP address of the instance.StringgetKernelId()Optional.StringgetKeyName()If this instance was launched with an associated key pair, this displays the key pair name.DategetLaunchTime()The time the instance launched.StringgetPlatform()Platform of the instance (e.g., Windows).StringgetPrivateDnsName()The private DNS name assigned to the instance.StringgetPrivateIpAddress()Specifies the private IP address that is assigned to the instance (Amazon VPC).StringgetRamdiskId()Optional.StringgetRawState()The current state of the instance, as returned literally from the input XMLStringgetReason()Reason for the most recent state transition.StringgetRegion()Deprecated.StringgetRootDeviceName()RootDeviceTypegetRootDeviceType()Map<String,String>getTags()tags that are present in the instanceStringgetVirtualizationType()Specifies the instance's virtualization type.inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()RunningInstance.Builder<?>toBuilder()StringtoString()
-
-
-
Field Detail
-
region
protected final String region
-
amiLaunchIndex
protected final String amiLaunchIndex
-
imageId
protected final String imageId
-
instanceId
protected final String instanceId
-
instanceState
protected final InstanceState instanceState
-
rawState
protected final String rawState
-
instanceType
protected final String instanceType
-
launchTime
protected final Date launchTime
-
availabilityZone
protected final String availabilityZone
-
virtualizationType
protected final String virtualizationType
-
rootDeviceType
protected final RootDeviceType rootDeviceType
-
ebsBlockDevices
protected final Map<String,BlockDevice> ebsBlockDevices
-
-
Constructor Detail
-
RunningInstance
protected RunningInstance(String region, Iterable<String> groupNames, @Nullable String amiLaunchIndex, @Nullable String dnsName, String imageId, String instanceId, InstanceState instanceState, String rawState, String instanceType, @Nullable String ipAddress, @Nullable String kernelId, @Nullable String keyName, Date launchTime, String availabilityZone, String virtualizationType, @Nullable String platform, @Nullable String privateDnsName, @Nullable String privateIpAddress, @Nullable String ramdiskId, @Nullable String reason, RootDeviceType rootDeviceType, @Nullable String rootDeviceName, Map<String,BlockDevice> ebsBlockDevices, Map<String,String> tags)
-
-
Method Detail
-
builder
public static RunningInstance.Builder<?> builder()
-
toBuilder
public RunningInstance.Builder<?> toBuilder()
-
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.
-
getAmiLaunchIndex
public String getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance within the launch group. For more information, go to the Metadata section of the Amazon Elastic Compute Cloud Developer Guide.
-
getDnsName
public String getDnsName()
The public DNS name assigned to the instance. This DNS name is contactable from outside the Amazon EC2 network. This element remains empty until the instance enters a running state.
-
getImageId
public String getImageId()
Image ID of the AMI used to launch the instance.
-
getId
public String getId()
Unique ID of the instance launched.
-
getInstanceState
public InstanceState getInstanceState()
The current state of the instance.
-
getRawState
public String getRawState()
The current state of the instance, as returned literally from the input XML
-
getInstanceType
public String getInstanceType()
The instance type.
-
getIpAddress
public String getIpAddress()
Specifies the IP address of the instance.
-
getKernelId
public String getKernelId()
Optional. Kernel associated with this instance.
-
getKeyName
public String getKeyName()
If this instance was launched with an associated key pair, this displays the key pair name.
-
getLaunchTime
public Date getLaunchTime()
The time the instance launched.
-
getAvailabilityZone
public String getAvailabilityZone()
The location where the instance launched.
-
getVirtualizationType
public String getVirtualizationType()
Specifies the instance's virtualization type. Valid values are paravirtual or hvm.
-
getPlatform
public String getPlatform()
Platform of the instance (e.g., Windows).
-
getPrivateDnsName
public String getPrivateDnsName()
The private DNS name assigned to the instance. This DNS name can only be used inside the Amazon EC2 network. This element remains empty until the instance enters a running state.
-
getPrivateIpAddress
public String getPrivateIpAddress()
Specifies the private IP address that is assigned to the instance (Amazon VPC).
-
getRamdiskId
public String getRamdiskId()
Optional. RAM disk associated with this instance.
-
getReason
public String getReason()
Reason for the most recent state transition. This might be an empty string.
-
getRootDeviceType
public RootDeviceType getRootDeviceType()
-
getRootDeviceName
public String getRootDeviceName()
-
getEbsBlockDevices
public Map<String,BlockDevice> getEbsBlockDevices()
EBS volumes associated with the instance.
-
compareTo
public int compareTo(RunningInstance other)
- Specified by:
compareToin interfaceComparable<RunningInstance>
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-