public final class EurekaUtils
extends java.lang.Object
ApplicationInfoManager
, InstanceInfo
and EurekaClient
Constructor and Description |
---|
EurekaUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getPrivateIp(InstanceInfo instanceInfo)
return the privateIp address of the given InstanceInfo record.
|
static boolean |
isInEc2(InstanceInfo instanceInfo)
check to see if the instanceInfo record is of a server that is deployed within EC2 (best effort check based
on assumptions of underlying id).
|
static boolean |
isInVpc(InstanceInfo instanceInfo)
check to see if the instanceInfo record is of a server that is deployed within EC2 VPC (best effort check
based on assumption of existing vpcId).
|
public static java.lang.String getPrivateIp(InstanceInfo instanceInfo)
instanceInfo
- public static boolean isInEc2(InstanceInfo instanceInfo)
instanceInfo
- public static boolean isInVpc(InstanceInfo instanceInfo)
instanceInfo
-