blob: bdb9f2de1ea4028ecca64411792b9d132a80a46b [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
26 ListenerService<AuthenticationStatisticsEvent, AuthenticationStatisticsEventListener> {
27
28 /**
29 * Returns AaaStatistics object.
30 *
31 * @return AaaStatistics
32 */
33 public AaaStatistics getAaaStats();
34
35 /**
36 * Returns AuthenticationStatisticsDelegate object.
37 *
38 * @return AuthenticationStatisticsDelegate
39 */
40 public AuthenticationStatisticsDelegate getStatsDelegate();
41
42 /**
43 * Handle the roundTrip time of Radius Packet.
44 *
45 * @param identifier identifier of incoming radius packet
46 */
47 public void handleRoundtripTime(byte identifier);
48
49 /**
50 * Calculate average roundTrip time of multiple Packets.
51 */
52 public void calculatePacketRoundtripTime();
53
54 /**
55 * Put the identifier value to map.
56 *
57 * @param identifier identifier of incoming radius packet
58 */
59 public void putOutgoingIdentifierToMap(byte identifier);
60}