Class DefaultLink

    • Constructor Detail

      • DefaultLink

        protected DefaultLink​(ProviderId providerId,
                              ConnectPoint src,
                              ConnectPoint dst,
                              Link.Type type,
                              Link.State state,
                              Annotations... annotations)
        Creates an infrastructure link using the supplied information.
        Parameters:
        providerId - provider identity
        src - link source
        dst - link destination
        type - link type
        state - link state
        annotations - optional key/value annotations
    • Method Detail

      • src

        public ConnectPoint src()
        Description copied from interface: Link
        Returns the link source connection point.
        Specified by:
        src in interface Link
        Returns:
        link source connection point
      • dst

        public ConnectPoint dst()
        Description copied from interface: Link
        Returns the link destination connection point.
        Specified by:
        dst in interface Link
        Returns:
        link destination connection point
      • type

        public Link.Type type()
        Description copied from interface: Link
        Returns the link type.
        Specified by:
        type in interface Link
        Returns:
        link type
      • state

        public Link.State state()
        Description copied from interface: Link
        Returns the link state.
        Specified by:
        state in interface Link
        Returns:
        link state
      • isExpected

        public boolean isExpected()
        Description copied from interface: Link
        Indicates if the link was created from a predefined configuration.
        Specified by:
        isExpected in interface Link
        Returns:
        true if the link was created from a predefined configuration, false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • builder

        public static DefaultLink.Builder builder()
        Creates a new default link builder.
        Returns:
        default link builder