Class OpticalConnectivityIntent


  • @Beta
    public final class OpticalConnectivityIntent
    extends Intent
    An optical layer intent for connectivity between two OCh ports. No traffic selector or traffic treatment are needed. OchSignal and suggestedPath are optional.
    • Constructor Detail

      • OpticalConnectivityIntent

        protected OpticalConnectivityIntent​(ApplicationId appId,
                                            Key key,
                                            ConnectPoint src,
                                            ConnectPoint dst,
                                            OduSignalType signalType,
                                            boolean isBidirectional,
                                            java.util.Optional<OchSignal> ochSignal,
                                            java.util.Optional<Path> suggestedPath,
                                            int priority,
                                            ResourceGroup resourceGroup)
        Creates an optical connectivity intent between the specified connection points.
        Parameters:
        appId - application identification
        key - intent key
        src - the source transponder port
        dst - the destination transponder port
        signalType - signal type
        isBidirectional - indicates if intent is unidirectional
        ochSignal - optional OCh signal
        suggestedPath - optional suggested path
        priority - priority to use for flows from this intent
        resourceGroup - resource group of this intent
      • OpticalConnectivityIntent

        protected OpticalConnectivityIntent()
        Constructor for serializer.
    • Method Detail

      • getSrc

        public ConnectPoint getSrc()
        Returns the source transponder port.
        Returns:
        source transponder port
      • getDst

        public ConnectPoint getDst()
        Returns the destination transponder port.
        Returns:
        source transponder port
      • getSignalType

        public OduSignalType getSignalType()
        Returns the ODU signal type.
        Returns:
        ODU signal type
      • isBidirectional

        public boolean isBidirectional()
        Returns the directionality of the intent.
        Returns:
        true if bidirectional, false if unidirectional
      • ochSignal

        public java.util.Optional<OchSignal> ochSignal()
        Returns the OCh signal of the intent.
        Returns:
        the lambda
      • suggestedPath

        public java.util.Optional<Path> suggestedPath()
        Returns the suggestedPath of the intent.
        Returns:
        the suggestedPath
      • toString

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