blob: 0a826bb96752a826e85798607e3b02d55f08d51f [file] [log] [blame]
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -08003 *
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 */
16package org.onosproject.net.group;
17
18import java.util.Collection;
19
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.provider.ProviderService;
22
23/**
24 * Service through which Group providers can inject information into
25 * the core.
26 */
27public interface GroupProviderService extends ProviderService<GroupProvider> {
28
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -080029 /**
30 * Notifies core if any failure from data plane during group operations.
31 *
sangho7ff01812015-02-09 16:21:53 -080032 * @param deviceId the device ID
Srikanth Vavilapalli0599d512015-01-30 12:57:56 -080033 * @param operation offended group operation
34 */
sangho7ff01812015-02-09 16:21:53 -080035 void groupOperationFailed(DeviceId deviceId, GroupOperation operation);
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080036
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 */
helenyrwu89470f12016-08-12 13:18:10 -070044 void pushGroupMetrics(DeviceId deviceId, Collection<Group> groupEntries);
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080045
helenyrwu89470f12016-08-12 13:18:10 -070046 /**
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 Vavilapalli56db94f2015-01-22 22:30:17 -080052}