blob: bfa0522955255a3d9be09705766cab8011434d87 [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
29 void groupOperationFailed(GroupOperation operation);
30
31 /**
32 * Pushes the collection of group detected in the data plane along
33 * with statistics.
34 *
35 * @param deviceId device identifier
36 * @param groupEntries collection of group entries as seen in data plane
37 */
38 void pushGroupMetrics(DeviceId deviceId,
39 Collection<Group> groupEntries);
40
41}