Shubham Sharma | 47f2caf | 2020-02-18 12:13:40 +0000 | [diff] [blame] | 1 | /* |
Joey Armstrong | 517afab | 2023-01-09 14:22:22 -0500 | [diff] [blame] | 2 | * Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Shubham Sharma | 47f2caf | 2020-02-18 12:13:40 +0000 | [diff] [blame] | 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.opencord.igmpproxy; |
| 18 | |
| 19 | import org.onosproject.event.ListenerService; |
| 20 | |
| 21 | /** |
| 22 | * Service for interacting with accounting module. |
| 23 | */ |
| 24 | public interface IgmpStatisticsService extends |
| 25 | ListenerService<IgmpStatisticsEvent, IgmpStatisticsEventListener> { |
Ilayda Ozdemir | 0872abd | 2020-06-03 20:20:20 +0300 | [diff] [blame] | 26 | |
Shubham Sharma | 47f2caf | 2020-02-18 12:13:40 +0000 | [diff] [blame] | 27 | /** |
Ilayda Ozdemir | 0872abd | 2020-06-03 20:20:20 +0300 | [diff] [blame] | 28 | * Increases statistic-value for given type. |
Shubham Sharma | 47f2caf | 2020-02-18 12:13:40 +0000 | [diff] [blame] | 29 | * |
Ilayda Ozdemir | 0872abd | 2020-06-03 20:20:20 +0300 | [diff] [blame] | 30 | * @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 Sharma | 47f2caf | 2020-02-18 12:13:40 +0000 | [diff] [blame] | 46 | |
| 47 | } |