alshabib | e27055b | 2015-07-09 21:43:10 -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 | */ |
| 16 | |
| 17 | package org.onosproject.provider.of.meter.impl; |
| 18 | |
| 19 | import org.apache.felix.scr.annotations.Component; |
| 20 | import org.apache.felix.scr.annotations.Reference; |
| 21 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
alshabib | bc37196 | 2015-07-09 22:26:21 -0700 | [diff] [blame^] | 22 | import org.onosproject.net.DeviceId; |
| 23 | import org.onosproject.net.meter.MeterOperation; |
| 24 | import org.onosproject.net.meter.MeterOperations; |
alshabib | e27055b | 2015-07-09 21:43:10 -0700 | [diff] [blame] | 25 | import org.onosproject.net.meter.MeterProvider; |
| 26 | import org.onosproject.net.provider.AbstractProvider; |
| 27 | import org.onosproject.net.provider.ProviderId; |
| 28 | import org.onosproject.openflow.controller.OpenFlowController; |
| 29 | import org.slf4j.Logger; |
| 30 | |
| 31 | import static org.slf4j.LoggerFactory.getLogger; |
| 32 | |
| 33 | /** |
| 34 | * Provider which uses an OpenFlow controller to handle meters. |
| 35 | */ |
| 36 | @Component(immediate = true) |
| 37 | public class OpenFlowMeterProvider extends AbstractProvider implements MeterProvider { |
| 38 | |
| 39 | private final Logger log = getLogger(getClass()); |
| 40 | |
| 41 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) |
| 42 | protected OpenFlowController controller; |
| 43 | |
| 44 | |
| 45 | /** |
| 46 | * Creates a OpenFlow meter provider. |
| 47 | */ |
| 48 | public OpenFlowMeterProvider() { |
| 49 | super(new ProviderId("of", "org.onosproject.provider.meter")); |
| 50 | } |
alshabib | bc37196 | 2015-07-09 22:26:21 -0700 | [diff] [blame^] | 51 | |
| 52 | @Override |
| 53 | public void performMeterOperation(DeviceId deviceId, MeterOperations meterOps) { |
| 54 | |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public void performMeterOperation(DeviceId deviceId, MeterOperation meterOp) { |
| 59 | |
| 60 | } |
alshabib | e27055b | 2015-07-09 21:43:10 -0700 | [diff] [blame] | 61 | } |