Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.incubator.net.virtual.provider; |
| 18 | |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 19 | import org.onosproject.net.DeviceId; |
| 20 | import org.onosproject.net.group.Group; |
| 21 | import org.onosproject.net.group.GroupOperation; |
| 22 | |
| 23 | import java.util.Collection; |
| 24 | |
| 25 | /** |
| 26 | * Service through which Group providers can inject information into |
| 27 | * the virtual network core. |
| 28 | */ |
| 29 | public interface VirtualGroupProviderService |
| 30 | extends VirtualProviderService<VirtualGroupProvider> { |
| 31 | /** |
| 32 | * Notifies core if any failure from data plane during group operations. |
| 33 | * |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 34 | * @param deviceId the device ID |
| 35 | * @param operation offended group operation |
| 36 | */ |
yoonseon | dc3210d | 2017-01-25 16:03:10 -0800 | [diff] [blame^] | 37 | void groupOperationFailed(DeviceId deviceId, GroupOperation operation); |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 38 | |
| 39 | /** |
| 40 | * Pushes the collection of group detected in the data plane along |
| 41 | * with statistics. |
| 42 | * |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 43 | * @param deviceId device identifier |
| 44 | * @param groupEntries collection of group entries as seen in data plane |
| 45 | */ |
yoonseon | dc3210d | 2017-01-25 16:03:10 -0800 | [diff] [blame^] | 46 | void pushGroupMetrics(DeviceId deviceId, Collection<Group> groupEntries); |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 47 | |
| 48 | /** |
| 49 | * Notifies store of group failovers. |
| 50 | * |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 51 | * @param failoverGroups failover groups in which a failover has occurred |
| 52 | */ |
yoonseon | dc3210d | 2017-01-25 16:03:10 -0800 | [diff] [blame^] | 53 | void notifyOfFailovers(Collection<Group> failoverGroups); |
Yoonseon Han | cbfac9a | 2016-10-20 13:14:06 -0700 | [diff] [blame] | 54 | } |