Class HostLocation

  • All Implemented Interfaces:
    java.lang.Comparable<ConnectPoint>

    public class HostLocation
    extends ConnectPoint
    Representation of a network edge location where an end-station host is connected.
    • Field Detail

      • NONE

        public static final HostLocation NONE
        Represents a no location or an unknown location.
    • Constructor Detail

      • HostLocation

        public HostLocation​(DeviceId deviceId,
                            PortNumber portNumber,
                            long time)
        Creates a new host location using the supplied device & port.
        Parameters:
        deviceId - device identity
        portNumber - device port number
        time - time when detected, in millis since start of epoch
      • HostLocation

        public HostLocation​(ConnectPoint connectPoint,
                            long time)
        Creates a new host location derived from the supplied connection point.
        Parameters:
        connectPoint - connection point
        time - time when detected, in millis since start of epoch
    • Method Detail

      • time

        public long time()
        Returns the time when the location was established, given in milliseconds since start of epoch.
        Returns:
        time in milliseconds since start of epoch