@Beta public interface TunnelStore extends Store<TunnelEvent,TunnelStoreDelegate>
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Tunnel> |
borrowTunnel(ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Annotations... annotations)
Returns all tunnels between source and destination.
|
java.util.Collection<Tunnel> |
borrowTunnel(ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
Annotations... annotations)
Returns all specified type tunnels between source and destination.
|
Tunnel |
borrowTunnel(ApplicationId consumerId,
TunnelId tunnelId,
Annotations... annotations)
Returns a specific tunnel.
|
java.util.Collection<Tunnel> |
borrowTunnel(ApplicationId consumerId,
TunnelName tunnelName,
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 |
deleteTunnel(TunnelEndPoint src,
TunnelEndPoint dst,
ProviderId producerName)
Deletes all tunnels between source point and destination point.
|
void |
deleteTunnel(TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
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(ApplicationId consumerId)
Returns all tunnel subscription record by consumer.
|
boolean |
returnTunnel(ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Annotations... annotations)
Returns all tunnels between source and destination back the store.
|
boolean |
returnTunnel(ApplicationId consumerId,
TunnelEndPoint src,
TunnelEndPoint dst,
Tunnel.Type type,
Annotations... annotations)
Returns all specific type tunnels between source and destination back
store.
|
boolean |
returnTunnel(ApplicationId consumerId,
TunnelId tunnelId,
Annotations... annotations)
Returns back a specific tunnel to store.
|
boolean |
returnTunnel(ApplicationId consumerId,
TunnelName tunnelName,
Annotations... annotations)
Returns all specific name tunnel back store.
|
int |
tunnelCount()
Returns all tunnels.
|
hasDelegate, setDelegate, unsetDelegate
TunnelId createOrUpdateTunnel(Tunnel tunnel)
tunnel
- tunnelTunnelId createOrUpdateTunnel(Tunnel tunnel, Tunnel.State state)
tunnel
- tunnelstate
- tunnel statevoid deleteTunnel(TunnelId tunnelId)
tunnelId
- tunnel unique identifier generated by ONOSvoid deleteTunnel(TunnelEndPoint src, TunnelEndPoint dst, ProviderId producerName)
src
- a source point of tunnel.dst
- a destination point of tunnel.producerName
- producerNamevoid deleteTunnel(TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, ProviderId producerName)
src
- a source point of tunnel.dst
- a destination point of tunnel.type
- tunnel typeproducerName
- producerNameTunnel borrowTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations)
consumerId
- a tunnel consumertunnelId
- tunnel identify generated by onosannotations
- parameterjava.util.Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelName tunnelName, Annotations... annotations)
consumerId
- a tunnel consumertunnelName
- tunnel nameannotations
- parameterjava.util.Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, Annotations... annotations)
consumerId
- a tunnel consumersrc
- a source point of tunnel.dst
- a destination point of tunnelannotations
- parameterjava.util.Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, Annotations... annotations)
consumerId
- a tunnel consumersrc
- a source point of tunnel.dst
- a destination point of tunneltype
- tunnel typeannotations
- Annotationsboolean returnTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations)
consumerId
- a tunnel consumertunnelId
- tunnel identify generated by ONOSannotations
- Annotationsboolean returnTunnel(ApplicationId consumerId, TunnelName tunnelName, Annotations... annotations)
consumerId
- a tunnel consumertunnelName
- tunnel nameannotations
- Annotationsboolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, Annotations... annotations)
consumerId
- a tunnel consumersrc
- a source point of tunnel.dst
- a destination point of tunneltype
- tunnel typeannotations
- Annotationsboolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, Annotations... annotations)
consumerId
- a tunnel consumersrc
- a source point of tunnel.dst
- a destination point of tunnel.annotations
- AnnotationsTunnel queryTunnel(TunnelId tunnelId)
tunnelId
- tunnel identify generated by tunnel producerjava.util.Collection<TunnelSubscription> queryTunnelSubscription(ApplicationId consumerId)
consumerId
- consumer identityjava.util.Collection<Tunnel> queryTunnel(Tunnel.Type type)
type
- tunnel typejava.util.Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst)
src
- a source point of tunnel.dst
- a destination point of tunnel.java.util.Collection<Tunnel> queryAllTunnels()
int tunnelCount()