public abstract class ConnectivityIntentCompiler<T extends org.onosproject.net.intent.ConnectivityIntent> extends Object implements org.onosproject.net.intent.IntentCompiler<T>
connectivity intents.| Modifier and Type | Class and Description |
|---|---|
protected class |
ConnectivityIntentCompiler.ConstraintBasedLinkWeigher
Edge-weight capable of evaluating link cost using a set of constraints.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.intent.IntentExtensionService |
intentManager |
protected org.onosproject.net.topology.PathService |
pathService |
protected org.onosproject.net.resource.ResourceService |
resourceService |
| Constructor and Description |
|---|
ConnectivityIntentCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocateBandwidth(org.onosproject.net.intent.ConnectivityIntent intent,
List<org.onosproject.net.ConnectPoint> connectPoints)
Allocates the bandwidth specified as intent constraint on each link
composing the intent, if a bandwidth constraint is specified.
|
protected boolean |
checkPath(org.onosproject.net.Path path,
List<org.onosproject.net.intent.Constraint> constraints)
Validates the specified path against the given constraints.
|
protected org.onosproject.net.DisjointPath |
getDisjointPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
Computes a disjoint path between two ConnectPoints.
|
protected org.onosproject.net.Path |
getPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
Computes a path between two ConnectPoints.
|
protected org.onosproject.net.Path |
getPathOrException(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
Deprecated.
|
protected org.onosproject.net.topology.LinkWeigher |
weigher(List<org.onosproject.net.intent.Constraint> constraints)
Returns an edge-weight capable of evaluating links on the basis of the
specified constraints.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.IntentExtensionService intentManager
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.topology.PathService pathService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.resource.ResourceService resourceService
protected org.onosproject.net.topology.LinkWeigher weigher(List<org.onosproject.net.intent.Constraint> constraints)
constraints - path constraintsprotected boolean checkPath(org.onosproject.net.Path path,
List<org.onosproject.net.intent.Constraint> constraints)
path - path to be checkedconstraints - path constraints@Deprecated protected org.onosproject.net.Path getPathOrException(org.onosproject.net.intent.ConnectivityIntent intent, org.onosproject.net.ElementId one, org.onosproject.net.ElementId two)
intent - intent on which behalf path is being computedone - start of the pathtwo - end of the pathPathNotFoundException - if a path cannot be foundprotected org.onosproject.net.Path getPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
intent - intent on which behalf path is being computedone - start of the pathtwo - end of the pathprotected org.onosproject.net.DisjointPath getDisjointPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
intent - intent on which behalf path is being computedone - start of the pathtwo - end of the pathPathNotFoundException - if two paths cannot be foundprotected void allocateBandwidth(org.onosproject.net.intent.ConnectivityIntent intent,
List<org.onosproject.net.ConnectPoint> connectPoints)
intent - the intent requesting bandwidth allocationconnectPoints - the connect points composing the intent path computed