static Map<Alarm.SeverityLevel, Long> lookUpAlarmCounts() { return alarmService().getAlarmCounts(); }
static Map<Alarm.SeverityLevel, Long> lookUpAlarmCounts(DeviceId deviceId) { return alarmService().getAlarmCounts(deviceId); }
@Override protected void execute() { Map<Alarm.SeverityLevel, Long> alarmCounts = AbstractShellCommand.get(AlarmService.class).getAlarmCounts(); printCounts(alarmCounts); }
@Override protected void execute() { Map<Alarm.SeverityLevel, Long> alarmCounts = AbstractShellCommand.get(AlarmService.class). getAlarmCounts(DeviceId.deviceId(deviceId)); // Deliberately using same formatting for both ... printCounts(alarmCounts); }