Pier Luigi | bdcd967 | 2017-10-13 13:54:48 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 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 | |
| 17 | package org.onosproject.net.meter; |
| 18 | |
| 19 | import org.onosproject.net.DeviceId; |
| 20 | |
| 21 | import java.util.Collection; |
| 22 | |
| 23 | /** |
| 24 | * Testing adapter for the meter service interface. |
| 25 | */ |
| 26 | public class MeterServiceAdapter implements MeterService { |
| 27 | @Override |
| 28 | public Meter submit(MeterRequest meter) { |
| 29 | return null; |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | public void withdraw(MeterRequest meter, MeterId meterId) { |
| 34 | |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public Meter getMeter(DeviceId deviceId, MeterId id) { |
| 39 | return null; |
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public Collection<Meter> getAllMeters() { |
| 44 | return null; |
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public Collection<Meter> getMeters(DeviceId deviceId) { |
| 49 | return null; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public MeterId allocateMeterId(DeviceId deviceId) { |
| 54 | return null; |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public void freeMeterId(DeviceId deviceId, MeterId meterId) { |
| 59 | |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public void addListener(MeterListener listener) { |
| 64 | |
| 65 | } |
| 66 | |
| 67 | @Override |
| 68 | public void removeListener(MeterListener listener) { |
| 69 | |
| 70 | } |
| 71 | } |