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();
}
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));
}
}
Aggregations