Class DefaultEdgeLink

    • Constructor Detail

      • DefaultEdgeLink

        public DefaultEdgeLink​(ProviderId providerId,
                               ConnectPoint hostPoint,
                               HostLocation hostLocation,
                               boolean isIngress,
                               Annotations... annotations)
        Creates an edge link using the supplied information.
        Parameters:
        providerId - provider identity
        hostPoint - host-side connection point
        hostLocation - location where host attaches to the network
        isIngress - true to indicate host-to-network direction; false for network-to-host direction
        annotations - optional key/value annotations
    • Method Detail

      • hostId

        public HostId hostId()
        Description copied from interface: EdgeLink
        Returns the host identification.
        Specified by:
        hostId in interface EdgeLink
        Returns:
        host identifier
      • hostLocation

        public HostLocation hostLocation()
        Description copied from interface: EdgeLink
        Returns the connection point where the host attaches to the network infrastructure.
        Specified by:
        hostLocation in interface EdgeLink
        Returns:
        host location point
      • createEdgeLink

        public static DefaultEdgeLink createEdgeLink​(ConnectPoint edgePort,
                                                     boolean isIngress)
        Creates a phantom edge link, to an unspecified end-station. This link does not represent any actually discovered link stored in the system.
        Parameters:
        edgePort - network edge port
        isIngress - true to indicate host-to-network direction; false for network-to-host direction
        Returns:
        new phantom edge link
      • createEdgeLink

        public static DefaultEdgeLink createEdgeLink​(Host host,
                                                     boolean isIngress)
        Creates a an edge link, to the specified end-station. The edge link inherits the target host annotations.
        Parameters:
        host - host
        isIngress - true to indicate host-to-network direction; false for network-to-host direction
        Returns:
        new phantom edge link
      • createEdgeLinks

        public static java.util.Set<DefaultEdgeLink> createEdgeLinks​(Host host,
                                                                     boolean isIngress)
        Creates edge links, to the specified end-station. The edge link inherits the target host annotations.
        Parameters:
        host - host
        isIngress - true to indicate host-to-network direction; false for network-to-host direction
        Returns:
        new phantom edge link