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 java.util.Collection; |
| 19 | |
| 20 | import org.onosproject.net.DeviceId; |
| 21 | import org.onosproject.net.provider.ProviderService; |
| 22 | |
| 23 | /** |
| 24 | * Service through which Group providers can inject information into |
| 25 | * the core. |
| 26 | */ |
| 27 | public interface GroupProviderService extends ProviderService<GroupProvider> { |
| 28 | |
Srikanth Vavilapalli | 0599d51 | 2015-01-30 12:57:56 -0800 | [diff] [blame] | 29 | /** |
| 30 | * Notifies core if any failure from data plane during group operations. |
| 31 | * |
sangho | 7ff0181 | 2015-02-09 16:21:53 -0800 | [diff] [blame] | 32 | * @param deviceId the device ID |
Srikanth Vavilapalli | 0599d51 | 2015-01-30 12:57:56 -0800 | [diff] [blame] | 33 | * @param operation offended group operation |
| 34 | */ |
sangho | 7ff0181 | 2015-02-09 16:21:53 -0800 | [diff] [blame] | 35 | void groupOperationFailed(DeviceId deviceId, GroupOperation operation); |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 36 | |
| 37 | /** |
| 38 | * Pushes the collection of group detected in the data plane along |
| 39 | * with statistics. |
| 40 | * |
| 41 | * @param deviceId device identifier |
| 42 | * @param groupEntries collection of group entries as seen in data plane |
| 43 | */ |
helenyrwu | 89470f1 | 2016-08-12 13:18:10 -0700 | [diff] [blame] | 44 | void pushGroupMetrics(DeviceId deviceId, Collection<Group> groupEntries); |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 45 | |
helenyrwu | 89470f1 | 2016-08-12 13:18:10 -0700 | [diff] [blame] | 46 | /** |
| 47 | * Notifies store of group failovers. |
| 48 | * |
| 49 | * @param failoverGroups failover groups in which a failover has occurred |
| 50 | */ |
| 51 | void notifyOfFailovers(Collection<Group> failoverGroups); |
Srikanth Vavilapalli | 56db94f | 2015-01-22 22:30:17 -0800 | [diff] [blame] | 52 | } |