Thomas Vachuska | 58de416 | 2015-09-10 16:15:33 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
chengfan | 2fff70f | 2015-08-24 18:20:19 -0500 | [diff] [blame] | 16 | package org.onosproject.provider.pcep.tunnel.impl; |
| 17 | |
| 18 | import org.onosproject.core.ApplicationId; |
| 19 | import org.onosproject.incubator.net.tunnel.Tunnel; |
| 20 | import org.onosproject.incubator.net.tunnel.TunnelEndPoint; |
| 21 | import org.onosproject.incubator.net.tunnel.TunnelId; |
| 22 | import org.onosproject.incubator.net.tunnel.TunnelListener; |
| 23 | import org.onosproject.incubator.net.tunnel.TunnelName; |
| 24 | import org.onosproject.incubator.net.tunnel.TunnelService; |
| 25 | import org.onosproject.incubator.net.tunnel.TunnelSubscription; |
| 26 | import org.onosproject.net.Annotations; |
| 27 | import org.onosproject.net.DeviceId; |
| 28 | |
| 29 | import java.util.Collection; |
| 30 | import java.util.Collections; |
| 31 | |
| 32 | public class TunnelServiceAdapter implements TunnelService { |
| 33 | @Override |
| 34 | public Tunnel borrowTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations) { |
| 35 | return null; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelName tunnelName, |
| 40 | Annotations... annotations) { |
| 41 | return null; |
| 42 | } |
| 43 | |
| 44 | @Override |
| 45 | public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 46 | Annotations... annotations) { |
| 47 | return null; |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 52 | Tunnel.Type type, Annotations... annotations) { |
| 53 | return null; |
| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public boolean returnTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations) { |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public boolean returnTunnel(ApplicationId consumerId, TunnelName tunnelName, Annotations... annotations) { |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | @Override |
| 67 | public boolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 68 | Tunnel.Type type, Annotations... annotations) { |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | @Override |
| 73 | public boolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 74 | Annotations... annotations) { |
| 75 | return false; |
| 76 | } |
| 77 | |
| 78 | @Override |
| 79 | public Tunnel queryTunnel(TunnelId tunnelId) { |
| 80 | return null; |
| 81 | } |
| 82 | |
| 83 | @Override |
| 84 | public Collection<TunnelSubscription> queryTunnelSubscription(ApplicationId consumerId) { |
| 85 | return null; |
| 86 | } |
| 87 | |
| 88 | @Override |
| 89 | public Collection<Tunnel> queryTunnel(Tunnel.Type type) { |
| 90 | return null; |
| 91 | } |
| 92 | |
| 93 | @Override |
| 94 | public Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst) { |
| 95 | return null; |
| 96 | } |
| 97 | |
| 98 | @Override |
| 99 | public Collection<Tunnel> queryAllTunnels() { |
| 100 | return Collections.emptyList(); |
| 101 | } |
| 102 | |
| 103 | @Override |
| 104 | public int tunnelCount() { |
| 105 | return 0; |
| 106 | } |
| 107 | |
| 108 | @Override |
| 109 | public Iterable<Tunnel> getTunnels(DeviceId deviceId) { |
| 110 | return null; |
| 111 | } |
| 112 | |
| 113 | @Override |
| 114 | public void addListener(TunnelListener listener) { |
| 115 | |
| 116 | } |
| 117 | |
| 118 | @Override |
| 119 | public void removeListener(TunnelListener listener) { |
| 120 | |
| 121 | } |
| 122 | } |