@Service public class DistributedTunnelStore extends org.onosproject.store.AbstractStore<TunnelEvent,TunnelStoreDelegate> implements TunnelStore
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.store.cluster.messaging.ClusterCommunicationService |
clusterCommunicator |
protected org.onosproject.cluster.ClusterService |
clusterService |
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.store.service.StorageService |
storageService |
| Constructor and Description |
|---|
DistributedTunnelStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
java.util.Collection<Tunnel> |
borrowTunnel(org.onosproject.core.ApplicationId appId,
TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.Annotations... annotations)
Returns all tunnels between source and destination.
|
java.util.Collection<Tunnel> |
borrowTunnel(org.onosproject.core.ApplicationId appId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.Annotations... annotations)
Returns all specified type tunnels between source and destination.
|
Tunnel |
borrowTunnel(org.onosproject.core.ApplicationId appId,
TunnelId tunnelId,
org.onosproject.net.Annotations... annotations)
Returns a specific tunnel.
|
java.util.Collection<Tunnel> |
borrowTunnel(org.onosproject.core.ApplicationId appId,
TunnelName tunnelName,
org.onosproject.net.Annotations... annotations)
Returns a specific tunnel by tunnelName.
|
TunnelId |
createOrUpdateTunnel(Tunnel tunnel)
Creates or updates a tunnel.
|
TunnelId |
createOrUpdateTunnel(Tunnel tunnel,
Tunnel.State state)
Creates a tunnel or updates a tunnel with the new state given in input.
|
void |
deactivate() |
void |
deleteTunnel(TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.provider.ProviderId producerName)
Deletes all tunnels between source point and destination point.
|
void |
deleteTunnel(TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.provider.ProviderId producerName)
Deletes all specific type tunnels between source point and destination
point.
|
void |
deleteTunnel(TunnelId tunnelId)
Deletes a tunnel by a specific tunnel identifier.
|
java.util.Collection<Tunnel> |
queryAllTunnels()
Returns all tunnels.
|
java.util.Collection<Tunnel> |
queryTunnel(Tunnel.Type type)
Returns all specified type tunnels.
|
java.util.Collection<Tunnel> |
queryTunnel(TunnelEndPoint src,
TunnelEndPoint dst)
Returns all tunnels between source point and destination point.
|
Tunnel |
queryTunnel(TunnelId tunnelId)
Returns a tunnel by a specific tunnel identity.
|
java.util.Collection<TunnelSubscription> |
queryTunnelSubscription(org.onosproject.core.ApplicationId appId)
Returns all tunnel subscription record by consumer.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.Annotations... annotations)
Returns all tunnels between source and destination back the store.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.Annotations... annotations)
Returns all specific type tunnels between source and destination back
store.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelId tunnelId,
org.onosproject.net.Annotations... annotations)
Returns back a specific tunnel to store.
|
boolean |
returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelName tunnelName,
org.onosproject.net.Annotations... annotations)
Returns all specific name tunnel back store.
|
int |
tunnelCount()
Returns all tunnels.
|
hasDelegate, notifyDelegate, notifyDelegate, setDelegate, unsetDelegate@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.cluster.messaging.ClusterCommunicationService clusterCommunicator
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.cluster.ClusterService clusterService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.store.service.StorageService storageService
@Activate public void activate()
@Deactivate public void deactivate()
public TunnelId createOrUpdateTunnel(Tunnel tunnel)
TunnelStorecreateOrUpdateTunnel in interface TunnelStoretunnel - tunnelpublic TunnelId createOrUpdateTunnel(Tunnel tunnel, Tunnel.State state)
TunnelStorecreateOrUpdateTunnel in interface TunnelStoretunnel - tunnelstate - tunnel statepublic void deleteTunnel(TunnelId tunnelId)
TunnelStoredeleteTunnel in interface TunnelStoretunnelId - tunnel unique identifier generated by ONOSpublic void deleteTunnel(TunnelEndPoint src, TunnelEndPoint dst, org.onosproject.net.provider.ProviderId producerName)
TunnelStoredeleteTunnel in interface TunnelStoresrc - a source point of tunnel.dst - a destination point of tunnel.producerName - producerNamepublic void deleteTunnel(TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, org.onosproject.net.provider.ProviderId producerName)
TunnelStoredeleteTunnel in interface TunnelStoresrc - a source point of tunnel.dst - a destination point of tunnel.type - tunnel typeproducerName - producerNamepublic Tunnel borrowTunnel(org.onosproject.core.ApplicationId appId, TunnelId tunnelId, org.onosproject.net.Annotations... annotations)
TunnelStoreborrowTunnel in interface TunnelStoreappId - a tunnel consumertunnelId - tunnel identify generated by onosannotations - parameterpublic java.util.Collection<Tunnel> borrowTunnel(org.onosproject.core.ApplicationId appId, TunnelEndPoint src, TunnelEndPoint dst, org.onosproject.net.Annotations... annotations)
TunnelStoreborrowTunnel in interface TunnelStoreappId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunnelannotations - parameterpublic java.util.Collection<Tunnel> borrowTunnel(org.onosproject.core.ApplicationId appId, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, org.onosproject.net.Annotations... annotations)
TunnelStoreborrowTunnel in interface TunnelStoreappId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunneltype - tunnel typeannotations - Annotationspublic java.util.Collection<Tunnel> borrowTunnel(org.onosproject.core.ApplicationId appId, TunnelName tunnelName, org.onosproject.net.Annotations... annotations)
TunnelStoreborrowTunnel in interface TunnelStoreappId - a tunnel consumertunnelName - tunnel nameannotations - parameterpublic boolean returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelName tunnelName,
org.onosproject.net.Annotations... annotations)
TunnelStorereturnTunnel in interface TunnelStoreappId - a tunnel consumertunnelName - tunnel nameannotations - Annotationspublic boolean returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelId tunnelId,
org.onosproject.net.Annotations... annotations)
TunnelStorereturnTunnel in interface TunnelStoreappId - a tunnel consumertunnelId - tunnel identify generated by ONOSannotations - Annotationspublic boolean returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
org.onosproject.net.Annotations... annotations)
TunnelStorereturnTunnel in interface TunnelStoreappId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunneltype - tunnel typeannotations - Annotationspublic boolean returnTunnel(org.onosproject.core.ApplicationId appId,
TunnelEndPoint src,
TunnelEndPoint dst,
org.onosproject.net.Annotations... annotations)
TunnelStorereturnTunnel in interface TunnelStoreappId - a tunnel consumersrc - a source point of tunnel.dst - a destination point of tunnel.annotations - Annotationspublic Tunnel queryTunnel(TunnelId tunnelId)
TunnelStorequeryTunnel in interface TunnelStoretunnelId - tunnel identify generated by tunnel producerpublic java.util.Collection<TunnelSubscription> queryTunnelSubscription(org.onosproject.core.ApplicationId appId)
TunnelStorequeryTunnelSubscription in interface TunnelStoreappId - consumer identitypublic java.util.Collection<Tunnel> queryTunnel(Tunnel.Type type)
TunnelStorequeryTunnel in interface TunnelStoretype - tunnel typepublic java.util.Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst)
TunnelStorequeryTunnel in interface TunnelStoresrc - a source point of tunnel.dst - a destination point of tunnel.public java.util.Collection<Tunnel> queryAllTunnels()
TunnelStorequeryAllTunnels in interface TunnelStorepublic int tunnelCount()
TunnelStoretunnelCount in interface TunnelStore