1 package org.onosproject.provider.pcep.tunnel.impl;
3 import org.onosproject.core.ApplicationId;
4 import org.onosproject.incubator.net.tunnel.Tunnel;
5 import org.onosproject.incubator.net.tunnel.TunnelEndPoint;
6 import org.onosproject.incubator.net.tunnel.TunnelId;
7 import org.onosproject.incubator.net.tunnel.TunnelListener;
8 import org.onosproject.incubator.net.tunnel.TunnelName;
9 import org.onosproject.incubator.net.tunnel.TunnelService;
10 import org.onosproject.incubator.net.tunnel.TunnelSubscription;
11 import org.onosproject.net.Annotations;
12 import org.onosproject.net.DeviceId;
14 import java.util.Collection;
15 import java.util.Collections;
17 public class TunnelServiceAdapter implements TunnelService {
19 public Tunnel borrowTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations) {
24 public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelName tunnelName,
25 Annotations... annotations) {
30 public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst,
31 Annotations... annotations) {
36 public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst,
37 Tunnel.Type type, Annotations... annotations) {
42 public boolean returnTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations) {
47 public boolean returnTunnel(ApplicationId consumerId, TunnelName tunnelName, Annotations... annotations) {
52 public boolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst,
53 Tunnel.Type type, Annotations... annotations) {
58 public boolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst,
59 Annotations... annotations) {
64 public Tunnel queryTunnel(TunnelId tunnelId) {
69 public Collection<TunnelSubscription> queryTunnelSubscription(ApplicationId consumerId) {
74 public Collection<Tunnel> queryTunnel(Tunnel.Type type) {
79 public Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst) {
84 public Collection<Tunnel> queryAllTunnels() {
85 return Collections.emptyList();
89 public int tunnelCount() {
94 public Iterable<Tunnel> getTunnels(DeviceId deviceId) {
99 public void addListener(TunnelListener listener) {
104 public void removeListener(TunnelListener listener) {