Brooklyn

brooklyn.location.geo
[Java] Class HostGeoInfo

java.lang.Object
  brooklyn.location.geo.HostGeoInfo

public class HostGeoInfo

Encapsulates geo-IP information for a given host.


Field Summary
java.lang.String address

the IP address

java.lang.String displayName

double latitude

static Logger log

double longitude

 
Constructor Summary
HostGeoInfo(java.lang.String address, java.lang.String displayName, double latitude, double longitude)

 
Method Summary
boolean equals(java.lang.Object o)

static java.net.InetAddress findIpAddress(Location l)

static HostGeoInfo fromEntity(Entity e)

static HostGeoInfo fromIpAddress(java.net.InetAddress address)

static HostGeoInfo fromLocation(Location l)

int hashCode()

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

address

public final java.lang.String address
the IP address


displayName

public final java.lang.String displayName


latitude

public final double latitude


log

public static final Logger log


longitude

public final double longitude


 
Constructor Detail

HostGeoInfo

public HostGeoInfo(java.lang.String address, java.lang.String displayName, double latitude, double longitude)


 
Method Detail

equals

@Override
public boolean equals(java.lang.Object o)


findIpAddress

public static java.net.InetAddress findIpAddress(Location l)


fromEntity

public static HostGeoInfo fromEntity(Entity e)


fromIpAddress

public static HostGeoInfo fromIpAddress(java.net.InetAddress address)


fromLocation

public static HostGeoInfo fromLocation(Location l)


hashCode

@Override
public int hashCode()


toString

@Override
public java.lang.String toString()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.