Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [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.net.group; |
| 17 | |
| 18 | import org.onosproject.net.DeviceId; |
| 19 | import org.onosproject.net.provider.Provider; |
| 20 | |
| 21 | /** |
Srikanth Vavilapalli | 0599d51 | 2015-01-30 12:57:56 -0800 | [diff] [blame] | 22 | * Abstraction of group provider. |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 23 | */ |
| 24 | public interface GroupProvider extends Provider { |
Laszlo Papp | 84adcac | 2018-03-13 12:11:51 +0000 | [diff] [blame] | 25 | /** |
| 26 | * Group capable property name. |
| 27 | * A driver is assumed to be group capable if this property is undefined. If |
| 28 | * the driver is group capable, then it supports group descriptions and |
| 29 | * optionally group statistics. If the driver is not group capable, then it |
| 30 | * supports neither group descriptions nor group statistics. |
| 31 | */ |
| 32 | String GROUP_CAPABLE = "groupCapable"; |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 33 | |
| 34 | /** |
Srikanth Vavilapalli | 0599d51 | 2015-01-30 12:57:56 -0800 | [diff] [blame] | 35 | * Performs a batch of group operation in the specified device with the |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 36 | * specified parameters. |
| 37 | * |
| 38 | * @param deviceId device identifier on which the batch of group |
| 39 | * operations to be executed |
| 40 | * @param groupOps immutable list of group operation |
| 41 | */ |
| 42 | void performGroupOperation(DeviceId deviceId, |
| 43 | GroupOperations groupOps); |
| 44 | |
| 45 | } |