blob: 37a2205bcb4e1aeebdcab199f92c783f1518723f [file] [log] [blame]
kartikey dubeye1545422019-05-22 12:53:45 +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.aaa;
18
19import org.onosproject.event.ListenerService;
20
21/**
22 * Service for interacting with accounting module.
23 */
24
25public interface AuthenticationStatisticsService extends
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000026ListenerService<AuthenticationStatisticsEvent, AuthenticationStatisticsEventListener> {
kartikey dubeye1545422019-05-22 12:53:45 +000027
28 /**
29 * Returns AaaStatistics object.
30 *
31 * @return AaaStatistics
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000032 */
kartikey dubeye1545422019-05-22 12:53:45 +000033 public AaaStatistics getAaaStats();
kartikey dubeye1545422019-05-22 12:53:45 +000034 /**
35 * Returns AuthenticationStatisticsDelegate object.
36 *
37 * @return AuthenticationStatisticsDelegate
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000038 */
kartikey dubeye1545422019-05-22 12:53:45 +000039 public AuthenticationStatisticsDelegate getStatsDelegate();
40
41 /**
42 * Handle the roundTrip time of Radius Packet.
43 *
44 * @param identifier identifier of incoming radius packet
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000045 */
kartikey dubeye1545422019-05-22 12:53:45 +000046 public void handleRoundtripTime(byte identifier);
47
48 /**
49 * Calculate average roundTrip time of multiple Packets.
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000050 */
kartikey dubeye1545422019-05-22 12:53:45 +000051 public void calculatePacketRoundtripTime();
52
53 /**
54 * Put the identifier value to map.
55 *
56 * @param identifier identifier of incoming radius packet
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000057 */
kartikey dubeye1545422019-05-22 12:53:45 +000058 public void putOutgoingIdentifierToMap(byte identifier);
Vijaykumar Kushwahaa54ce552019-06-18 09:37:42 +000059
60 /**
61 * Reset all the values of aaa counters to 0.
62 */
63 public void resetAllCounters();
kartikey dubeye1545422019-05-22 12:53:45 +000064}