@Beta @Service public class OpticalPathProvisioner extends org.onosproject.event.AbstractListenerManager<OpticalPathEvent,OpticalPathListener> implements OpticalPathService
| Modifier and Type | Class and Description |
|---|---|
class |
OpticalPathProvisioner.InternalIntentListener |
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.intent.IntentService |
intentService |
protected org.onosproject.net.link.LinkService |
linkService |
protected org.onosproject.mastership.MastershipService |
mastershipService |
protected org.onosproject.net.config.NetworkConfigService |
networkConfigService |
protected org.onosproject.net.resource.ResourceService |
resourceService |
protected org.onosproject.store.service.StorageService |
storageService |
protected org.onosproject.net.topology.TopologyService |
topologyService |
| Constructor and Description |
|---|
OpticalPathProvisioner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected void |
deactivate() |
java.util.Optional<java.util.List<org.onosproject.net.Link>> |
getPath(OpticalConnectivityId id)
Returns path assigned to given ID.
|
java.util.Collection<OpticalConnectivity> |
listConnectivity()
Lists collection of known OpticalConnectivity.
|
java.util.Set<org.onosproject.net.intent.Key> |
listIntents(OpticalConnectivityId id)
Lists intents generated from specified OpticalConnectivity.
|
void |
modified(org.osgi.service.component.ComponentContext context) |
boolean |
removeConnectivity(OpticalConnectivityId id)
Removes connectivity with given ID.
|
OpticalConnectivityId |
setupConnectivity(org.onosproject.net.ConnectPoint ingress,
org.onosproject.net.ConnectPoint egress,
org.onlab.util.Bandwidth bandwidth,
java.time.Duration latency)
Calculates multi-layer path between connect points and sets up connectivity.
|
OpticalConnectivityId |
setupPath(org.onosproject.net.Path path,
org.onlab.util.Bandwidth bandwidth,
java.time.Duration latency)
Sets up connectivity along given multi-layer path including cross-connect links.
|
addListener, bindEventDispatcher, post, removeListener, unbindEventDispatcher@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.IntentService intentService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.topology.TopologyService topologyService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.link.LinkService linkService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.mastership.MastershipService mastershipService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigService networkConfigService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.resource.ResourceService resourceService
@Activate protected void activate(org.osgi.service.component.ComponentContext context)
@Deactivate protected void deactivate()
@Modified public void modified(org.osgi.service.component.ComponentContext context)
public java.util.Collection<OpticalConnectivity> listConnectivity()
OpticalPathServicelistConnectivity in interface OpticalPathServicepublic java.util.Set<org.onosproject.net.intent.Key> listIntents(OpticalConnectivityId id)
OpticalPathServicelistIntents in interface OpticalPathServiceid - OpticalConnectivity identifierpublic OpticalConnectivityId setupConnectivity(org.onosproject.net.ConnectPoint ingress, org.onosproject.net.ConnectPoint egress, org.onlab.util.Bandwidth bandwidth, java.time.Duration latency)
OpticalPathServicesetupConnectivity in interface OpticalPathServiceingress - ingress portegress - egress portbandwidth - required bandwidth. No bandwidth is assured if null.latency - required latency. No latency is assured if null.public OpticalConnectivityId setupPath(org.onosproject.net.Path path, org.onlab.util.Bandwidth bandwidth, java.time.Duration latency)
OpticalPathServicesetupPath in interface OpticalPathServicepath - multi-layer path along which connectivity will be set upbandwidth - required bandwidth. No bandwidth is assured if null.latency - required latency. No latency is assured if null.public boolean removeConnectivity(OpticalConnectivityId id)
OpticalPathServiceremoveConnectivity in interface OpticalPathServiceid - ID of connectivitypublic java.util.Optional<java.util.List<org.onosproject.net.Link>> getPath(OpticalConnectivityId id)
OpticalPathServicegetPath in interface OpticalPathServiceid - ID of connectivity