public class HostLocation extends ConnectPoint
| Modifier and Type | Field and Description | 
|---|---|
static HostLocation | 
NONE
Represents a no location or an unknown location. 
 | 
| Constructor and Description | 
|---|
HostLocation(ConnectPoint connectPoint,
            long time)
Creates a new host location derived from the supplied connection point. 
 | 
HostLocation(DeviceId deviceId,
            PortNumber portNumber,
            long time)
Creates a new host location using the supplied device & port. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
time()
Returns the time when the location was established, given in
 milliseconds since start of epoch. 
 | 
String | 
toString()  | 
compareTo, deviceConnectPoint, deviceId, elementId, equals, fromString, hashCode, hostConnectPoint, hostId, ipElementId, portpublic static final HostLocation NONE
public HostLocation(DeviceId deviceId, PortNumber portNumber, long time)
deviceId - device identityportNumber - device port numbertime - time when detected, in millis since start of epochpublic HostLocation(ConnectPoint connectPoint, long time)
connectPoint - connection pointtime - time when detected, in millis since start of epochpublic long time()
public String toString()
toString in class ConnectPoint