Class DomainIntent

    • Constructor Detail

      • DomainIntent

        public DomainIntent​(ApplicationId appId,
                            Key key,
                            java.util.Collection<NetworkResource> resources,
                            int priority,
                            java.util.Set<FilteredConnectPoint> filteredIngressPoints,
                            java.util.Set<FilteredConnectPoint> filteredEgressPoints,
                            TrafficTreatment treatment,
                            java.util.List<Constraint> constraints)
        Parameters:
        appId - application identifier
        key - explicit key to use for intent
        resources - required network resources (optional)
        priority - intent priority
        filteredIngressPoints - filtered ingress points
        filteredEgressPoints - filtered egress points
        treatment - action to be applied at the egress
        constraints - constraints of the intent
        Throws:
        java.lang.NullPointerException - if filteredIngressPoints or filteredEgressPoints or appId or constraints is null.
        java.lang.IllegalArgumentException - if filteredIngressPoints or filteredEgressPoints is empty.
      • DomainIntent

        protected DomainIntent()
        Constructor for serializer.
    • Method Detail

      • isInstallable

        public boolean isInstallable()
        Description copied from class: Intent
        Indicates whether or not the intent is installable.
        Overrides:
        isInstallable in class Intent
        Returns:
        true if installable
      • filteredIngressPoints

        public java.util.Set<FilteredConnectPoint> filteredIngressPoints()
        Returns the filtered connected points on which the ingress traffic should be connected to the egress.
        Returns:
        filtered ingress connect points
      • filteredEgressPoints

        public java.util.Set<FilteredConnectPoint> filteredEgressPoints()
        Returns the filtered connected points on which the traffic should egress.
        Returns:
        filtered egress connect points
      • treatment

        public TrafficTreatment treatment()
        Returns the action applied to the traffic at the egress.
        Returns:
        applied action
      • constraints

        public java.util.List<Constraint> constraints()
        Returns the set of connectivity constraints.
        Returns:
        list of intent constraints