public class LocalInstanceInfo extends java.lang.Object implements InstanceInfo
InstanceInfo.InstanceEnvironment
Constructor and Description |
---|
LocalInstanceInfo() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAutoScalingGroup()
Get the ASG in which this instance is deployed.
|
java.lang.String |
getHostIP()
Get ip address for running instance.
|
java.lang.String |
getHostname()
Get the hostname for the running instance.
|
InstanceInfo.InstanceEnvironment |
getInstanceEnvironment()
Environment of the current running instance.
|
java.lang.String |
getInstanceId()
Get the instance id of the running instance.
|
java.lang.String |
getInstanceType()
Get the instance type of the running instance.
|
java.lang.String |
getPrivateIP()
Get private ip address for running instance.
|
java.lang.String |
getRac()
Get the availability zone of the running instance.
|
java.lang.String |
getRegion()
Get the region/data center of the running instance
|
java.lang.String |
getVpcId()
Get the id of the vpc account for running instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultRacks
public java.lang.String getRac()
InstanceInfo
getRac
in interface InstanceInfo
public java.lang.String getHostname()
InstanceInfo
getHostname
in interface InstanceInfo
public java.lang.String getHostIP()
InstanceInfo
getHostIP
in interface InstanceInfo
public java.lang.String getPrivateIP()
InstanceInfo
getPrivateIP
in interface InstanceInfo
public java.lang.String getInstanceId()
InstanceInfo
getInstanceId
in interface InstanceInfo
public java.lang.String getInstanceType()
InstanceInfo
getInstanceType
in interface InstanceInfo
public java.lang.String getVpcId()
InstanceInfo
getVpcId
in interface InstanceInfo
public java.lang.String getAutoScalingGroup()
InstanceInfo
getAutoScalingGroup
in interface InstanceInfo
public InstanceInfo.InstanceEnvironment getInstanceEnvironment()
InstanceInfo
getInstanceEnvironment
in interface InstanceInfo
public java.lang.String getRegion()
InstanceInfo
getRegion
in interface InstanceInfo