@Beta 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() |
Optional<List<org.onosproject.net.Link>> |
getPath(OpticalConnectivityId id)
Returns path assigned to given ID.
|
Collection<OpticalConnectivity> |
listConnectivity()
Lists collection of known OpticalConnectivity.
|
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,
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,
Duration latency)
Sets up connectivity along given multi-layer path including cross-connect links.
|
addListener, post, removeListenerprotected org.onosproject.net.intent.IntentService intentService
protected org.onosproject.net.topology.TopologyService topologyService
protected org.onosproject.core.CoreService coreService
protected org.onosproject.net.link.LinkService linkService
protected org.onosproject.mastership.MastershipService mastershipService
protected org.onosproject.cluster.ClusterService clusterService
protected org.onosproject.net.device.DeviceService deviceService
protected org.onosproject.store.service.StorageService storageService
protected org.onosproject.net.config.NetworkConfigService networkConfigService
protected org.onosproject.net.resource.ResourceService resourceService
protected void activate(org.osgi.service.component.ComponentContext context)
protected void deactivate()
public void modified(org.osgi.service.component.ComponentContext context)
public Collection<OpticalConnectivity> listConnectivity()
OpticalPathServicelistConnectivity in interface OpticalPathServicepublic 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, 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, 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 Optional<List<org.onosproject.net.Link>> getPath(OpticalConnectivityId id)
OpticalPathServicegetPath in interface OpticalPathServiceid - ID of connectivity