blob: f1085c3c06c7aa568e4cc5649346eedfb4f96ae0 [file] [log] [blame]
Yoonseon Hanfd7024f2016-10-20 13:29:10 -07001/*
2 * Copyright 2016-present 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
17package org.onosproject.incubator.net.virtual.provider;
18
19import org.onosproject.incubator.net.virtual.NetworkId;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.meter.MeterOperation;
22import org.onosproject.net.meter.MeterOperations;
23
24/**
25 * Abstraction of a Meter provider for virtual network.
26 */
27public interface VirtualMeterProvider extends VirtualProvider {
28 /**
29 * Performs a batch of meter operation on the specified virtual device
30 * with the specified parameters.
31 *
32 * @param networkId the identity of the virtual network where this rule applies
33 * @param deviceId device identifier on which the batch of group
34 * operations to be executed
35 * @param meterOps immutable list of meter operation
36 */
37 void performMeterOperation(NetworkId networkId, DeviceId deviceId,
38 MeterOperations meterOps);
39
40
41 /**
42 * Performs a meter operation on the specified vitual device with the
43 * specified parameters.
44 *
45 * @param networkId the identity of the virtual network where this rule applies
46 * @param deviceId device identifier on which the batch of group
47 * operations to be executed
48 * @param meterOp a meter operation
49 */
50 void performMeterOperation(NetworkId networkId, DeviceId deviceId,
51 MeterOperation meterOp);
52}