Satish K | 2eb5d84 | 2017-04-04 16:28:37 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Satish K | 2eb5d84 | 2017-04-04 16:28:37 +0530 | [diff] [blame] | 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 | */ |
| 16 | package org.onosproject.pce.pceservice; |
| 17 | |
| 18 | import org.onosproject.net.Link; |
| 19 | import org.onosproject.net.LinkKey; |
| 20 | import org.onosproject.bandwidthmgr.api.BandwidthMgmtService; |
| 21 | |
| 22 | import java.util.Set; |
| 23 | |
| 24 | /** |
| 25 | * Adapter for Bandwidth Management service. |
| 26 | */ |
| 27 | public class BandwidthMgmtServiceAdapter implements BandwidthMgmtService { |
| 28 | @Override |
| 29 | public boolean allocLocalReservedBw(LinkKey linkkey, Double bandwidth) { |
| 30 | return false; |
| 31 | } |
| 32 | |
| 33 | @Override |
| 34 | public boolean releaseLocalReservedBw(LinkKey linkkey, Double bandwidth) { |
| 35 | return false; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public Double getAllocatedLocalReservedBw(LinkKey linkkey) { |
| 40 | return null; |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public boolean addUnreservedBw(LinkKey linkkey, Set<Double> bandwidth) { |
| 45 | return false; |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public boolean removeUnreservedBw(LinkKey linkkey) { |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public Set<Double> getUnreservedBw(LinkKey linkkey) { |
| 55 | return null; |
| 56 | } |
| 57 | |
| 58 | @Override |
| 59 | public boolean isBandwidthAvailable(Link link, Double bandwidth) { |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public Double getTeCost(LinkKey linkKey) { |
| 65 | return null; |
| 66 | } |
| 67 | |
| 68 | @Override |
| 69 | public Double getAvailableBandwidth(LinkKey linkKey) { |
| 70 | return null; |
| 71 | } |
| 72 | } |