kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.opencord.aaa; |
| 18 | |
| 19 | import org.onosproject.event.ListenerService; |
| 20 | |
| 21 | /** |
| 22 | * Service for interacting with accounting module. |
| 23 | */ |
| 24 | |
| 25 | public interface AuthenticationStatisticsService extends |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 26 | ListenerService<AuthenticationStatisticsEvent, AuthenticationStatisticsEventListener> { |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 27 | |
| 28 | /** |
| 29 | * Returns AaaStatistics object. |
| 30 | * |
| 31 | * @return AaaStatistics |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 32 | */ |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 33 | public AaaStatistics getAaaStats(); |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 34 | /** |
| 35 | * Returns AuthenticationStatisticsDelegate object. |
| 36 | * |
| 37 | * @return AuthenticationStatisticsDelegate |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 38 | */ |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 39 | public AuthenticationStatisticsDelegate getStatsDelegate(); |
| 40 | |
| 41 | /** |
| 42 | * Handle the roundTrip time of Radius Packet. |
| 43 | * |
| 44 | * @param identifier identifier of incoming radius packet |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 45 | */ |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 46 | public void handleRoundtripTime(byte identifier); |
| 47 | |
| 48 | /** |
| 49 | * Calculate average roundTrip time of multiple Packets. |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 50 | */ |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 51 | public void calculatePacketRoundtripTime(); |
| 52 | |
| 53 | /** |
| 54 | * Put the identifier value to map. |
| 55 | * |
| 56 | * @param identifier identifier of incoming radius packet |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 57 | */ |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 58 | public void putOutgoingIdentifierToMap(byte identifier); |
Vijaykumar Kushwaha | a54ce55 | 2019-06-18 09:37:42 +0000 | [diff] [blame] | 59 | |
| 60 | /** |
| 61 | * Reset all the values of aaa counters to 0. |
| 62 | */ |
| 63 | public void resetAllCounters(); |
kartikey dubey | e154542 | 2019-05-22 12:53:45 +0000 | [diff] [blame] | 64 | } |