blob: 4655e234969e9b906f566eb1c05f37e70232b31a [file] [log] [blame]
alshabibe27055b2015-07-09 21:43:10 -07001/*
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 */
alshabib10c810b2015-08-18 16:59:04 -070016package org.onosproject.net.meter;
alshabibe27055b2015-07-09 21:43:10 -070017
alshabibbc371962015-07-09 22:26:21 -070018import org.onosproject.net.DeviceId;
alshabibe27055b2015-07-09 21:43:10 -070019import org.onosproject.net.provider.Provider;
20
21/**
22 * Abstraction of a Meter provider.
23 */
24public interface MeterProvider extends Provider {
alshabibbc371962015-07-09 22:26:21 -070025
26 /**
27 * Performs a batch of meter operation on the specified device with the
28 * specified parameters.
29 *
30 * @param deviceId device identifier on which the batch of group
31 * operations to be executed
32 * @param meterOps immutable list of meter operation
33 */
34 void performMeterOperation(DeviceId deviceId,
35 MeterOperations meterOps);
36
37
38 /**
39 * Performs a meter operation on the specified device with the
40 * specified parameters.
41 *
42 * @param deviceId device identifier on which the batch of group
43 * operations to be executed
44 * @param meterOp a meter operation
45 */
46 void performMeterOperation(DeviceId deviceId,
47 MeterOperation meterOp);
alshabibe27055b2015-07-09 21:43:10 -070048}