blob: 2a5b22816b7bdf08c0be4538cb98209a68188d85 [file] [log] [blame]
Shubham Sharma47f2caf2020-02-18 12:13:40 +00001/*
2 * Copyright 2018-present Open Networking Foundation
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
17package org.opencord.igmpproxy;
18
19import org.onosproject.event.ListenerService;
20
21/**
22 * Service for interacting with accounting module.
23 */
24public interface IgmpStatisticsService extends
25 ListenerService<IgmpStatisticsEvent, IgmpStatisticsEventListener> {
Ilayda Ozdemir0872abd2020-06-03 20:20:20 +030026
Shubham Sharma47f2caf2020-02-18 12:13:40 +000027 /**
Ilayda Ozdemir0872abd2020-06-03 20:20:20 +030028 * Increases statistic-value for given type.
Shubham Sharma47f2caf2020-02-18 12:13:40 +000029 *
Ilayda Ozdemir0872abd2020-06-03 20:20:20 +030030 * @param type type of igmp-statistic.
31 */
32 void increaseStat(IgmpStatisticType type);
33
34 /**
35 * Resets all statistic-values.
36 */
37 void resetAllStats();
38
39 /**
40 * Get statistic-value for given type.
41 *
42 * @param type type of igmp-statistic
43 * @return value of statistic
44 */
45 Long getStat(IgmpStatisticType type);
Shubham Sharma47f2caf2020-02-18 12:13:40 +000046
47}