Search in sources :

Example 1 with AuthenticationStatisticsService

use of org.opencord.aaa.AuthenticationStatisticsService in project aaa by opencord.

the class AaaResetCountersCommand method doExecute.

@Override
protected void doExecute() {
    AuthenticationStatisticsService aaaStatisticsManager = AbstractShellCommand.get(AuthenticationStatisticsService.class);
    aaaStatisticsManager.resetAllCounters();
}
Also used : AuthenticationStatisticsService(org.opencord.aaa.AuthenticationStatisticsService)

Example 2 with AuthenticationStatisticsService

use of org.opencord.aaa.AuthenticationStatisticsService in project aaa by opencord.

the class AaaShowCountersCommand method doExecute.

@Override
protected void doExecute() {
    AuthenticationStatisticsService aaaStatisticsManager = AbstractShellCommand.get(AuthenticationStatisticsService.class);
    AaaStatisticsSnapshot stats = aaaStatisticsManager.getClusterStatistics();
    print("-------------------------- Expected transitions ----------------------------");
    for (String name : AaaStatistics.EAPOL_SM_NAMES) {
        print("%30s %10d", name, stats.get(name));
    }
    print("-------------------------------- Other stats ----------------------------------");
    for (String name : AaaStatistics.EAPOL_STATS_NAMES) {
        print("%30s %10d", name, stats.get(name));
    }
}
Also used : AuthenticationStatisticsService(org.opencord.aaa.AuthenticationStatisticsService) AaaStatisticsSnapshot(org.opencord.aaa.AaaStatisticsSnapshot)

Aggregations

AuthenticationStatisticsService (org.opencord.aaa.AuthenticationStatisticsService)2 AaaStatisticsSnapshot (org.opencord.aaa.AaaStatisticsSnapshot)1