blob: 26c7bb1e8a047dcad2227ff1a5f1eb172c302dc1 [file] [log] [blame]
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -08001/*
2 * Copyright 2015 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 */
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 *
32 * @param operation offended group operation
33 */
Srikanth Vavilapalli56db94f2015-01-22 22:30:17 -080034 void groupOperationFailed(GroupOperation operation);
35
36 /**
37 * Pushes the collection of group detected in the data plane along
38 * with statistics.
39 *
40 * @param deviceId device identifier
41 * @param groupEntries collection of group entries as seen in data plane
42 */
43 void pushGroupMetrics(DeviceId deviceId,
44 Collection<Group> groupEntries);
45
46}