Class LinkCollectionIntent


  • @Beta
    public final class LinkCollectionIntent
    extends ConnectivityIntent
    Abstraction of a connectivity intent that is implemented by a set of path segments.
    • Constructor Detail

      • LinkCollectionIntent

        protected LinkCollectionIntent()
        Constructor for serializer.
    • Method Detail

      • builder

        public static LinkCollectionIntent.Builder builder()
        Returns a new link collection intent builder. The application id, ingress point and egress points are required fields. If they are not set by calls to the appropriate methods, an exception will be thrown.
        Returns:
        single point to multi point builder
      • links

        public java.util.Set<Link> links()
        Returns the set of links that represent the network connections needed by this intent.
        Returns:
        Set of links for the network hops needed by this intent
      • ingressPoints

        public java.util.Set<ConnectPoint> ingressPoints()
        Returns the ingress points of the intent.
        Returns:
        the ingress points
      • egressPoints

        public java.util.Set<ConnectPoint> egressPoints()
        Returns the egress points of the intent.
        Returns:
        the egress points
      • filteredIngressPoints

        public java.util.Set<FilteredConnectPoint> filteredIngressPoints()
        Returns the filtered ingress points of the intent.
        Returns:
        the ingress points
      • filteredEgressPoints

        public java.util.Set<FilteredConnectPoint> filteredEgressPoints()
        Returns the egress points of the intent.
        Returns:
        the egress points
      • applyTreatmentOnEgress

        public boolean applyTreatmentOnEgress()
        Returns whether treatment should be applied on egress.
        Returns:
        the egress treatment flag
      • cost

        public double cost()
        Returns the cost of the links of this intent.
        Returns:
        the cost of the links
      • toString

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