Package org.onosproject.net.intent
Class OpticalCircuitIntent
- java.lang.Object
-
- org.onosproject.net.intent.Intent
-
- org.onosproject.net.intent.OpticalCircuitIntent
-
@Beta public class OpticalCircuitIntent extends Intent
An optical layer intent for circuits between two OduClt ports. No traffic selector or traffic treatment are needed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpticalCircuitIntent.Builder
Builder for optical circuit intents.
-
Field Summary
-
Fields inherited from class org.onosproject.net.intent.Intent
DEFAULT_INTENT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OpticalCircuitIntent()
Constructor for serializer.protected
OpticalCircuitIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, CltSignalType signalType, boolean isBidirectional, int priority, ResourceGroup resourceGroup)
Creates an optical circuit intent between the specified connection points.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpticalCircuitIntent.Builder
builder()
Returns a new optical circuit intent builder.ConnectPoint
getDst()
Returns the destination transponder port.CltSignalType
getSignalType()
Returns the ODU signal type.ConnectPoint
getSrc()
Returns the source transponder port.boolean
isBidirectional()
Returns the directionality of the intent.java.lang.String
toString()
-
Methods inherited from class org.onosproject.net.intent.Intent
appId, bindIdGenerator, equals, hashCode, id, isInstallable, key, priority, resourceGroup, resources, unbindIdGenerator
-
-
-
-
Constructor Detail
-
OpticalCircuitIntent
protected OpticalCircuitIntent(ApplicationId appId, Key key, ConnectPoint src, ConnectPoint dst, CltSignalType signalType, boolean isBidirectional, int priority, ResourceGroup resourceGroup)
Creates an optical circuit intent between the specified connection points.- Parameters:
appId
- application identificationkey
- intent keysrc
- the source transponder portdst
- the destination transponder portsignalType
- ODU signal typeisBidirectional
- indicate if intent is bidirectionalpriority
- priority to use for flows from this intentresourceGroup
- resource group for this intent
-
OpticalCircuitIntent
protected OpticalCircuitIntent()
Constructor for serializer.
-
-
Method Detail
-
builder
public static OpticalCircuitIntent.Builder builder()
Returns a new optical circuit intent builder.- Returns:
- host to host intent builder
-
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 CltSignalType 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-