Class FlowObjectiveIntent


  • public final class FlowObjectiveIntent
    extends Intent
    Intent expressed as (and backed by) a collection of flow objectives through which the intent is to be accomplished.
    • Constructor Detail

      • FlowObjectiveIntent

        protected FlowObjectiveIntent()
        Constructor for serialization.
      • FlowObjectiveIntent

        public FlowObjectiveIntent​(ApplicationId appId,
                                   Key key,
                                   java.util.List<DeviceId> devices,
                                   java.util.List<Objective> objectives,
                                   java.util.Collection<NetworkResource> resources,
                                   ResourceGroup resourceGroup)
        Creates a flow objective intent with the specified objectives and resources.
        Parameters:
        appId - application id
        key - intent key
        devices - list of target devices; in same order as the objectives
        objectives - backing flow objectives
        resources - backing network resources
        resourceGroup - resource goup for this intent
    • Method Detail

      • objectives

        public java.util.List<Objective> objectives()
        Returns the collection of backing flow objectives.
        Returns:
        flow objectives
      • devices

        public java.util.List<DeviceId> devices()
        Returns the list of devices for the flow objectives.
        Returns:
        devices
      • 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
      • toString

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