public interface AlarmService extends ListenerService<AlarmEvent,AlarmListener>
Modifier and Type | Method and Description |
---|---|
Set<Alarm> |
getActiveAlarms()
Returns all of the ACTIVE alarms.
|
default Set<Alarm> |
getActiveAlarms(DeviceId deviceId)
Returns all of the ACTIVE alarms for a specific device.
|
Alarm |
getAlarm(AlarmId alarmId)
Returns the alarm with the specified identifier.
|
Map<Alarm.SeverityLevel,Long> |
getAlarmCounts()
Returns summary of alarms on all devices.
|
Map<Alarm.SeverityLevel,Long> |
getAlarmCounts(DeviceId deviceId)
Returns summary of alarms on a given device.
|
Set<Alarm> |
getAlarms()
Returns all of the alarms.
|
Set<Alarm> |
getAlarms(Alarm.SeverityLevel severity)
Returns the alarms with the specified severity.
|
Set<Alarm> |
getAlarms(DeviceId deviceId)
Returns the alarm matching a given device, regardless of source within that device.
|
Set<Alarm> |
getAlarms(DeviceId deviceId,
AlarmEntityId source)
Returns the alarm for a given device and source.
|
Set<Alarm> |
getAlarmsForFlow(DeviceId deviceId,
long flowId)
Returns the alarm affecting a given flow.
|
Set<Alarm> |
getAlarmsForLink(ConnectPoint src,
ConnectPoint dst)
Returns the alarm affecting a given link.
|
void |
remove(AlarmId id)
Remove an alarm from ONOS.
|
Alarm |
updateBookkeepingFields(AlarmId id,
boolean clear,
boolean isAcknowledged,
String assignedUser)
Update book-keeping (ie administrative) fields for the alarm matching the specified identifier.
|
addListener, removeListener
Alarm updateBookkeepingFields(AlarmId id, boolean clear, boolean isAcknowledged, String assignedUser)
id
- alarm identifierclear
- true if the alarm has to be clearedisAcknowledged
- new acknowledged stateassignedUser
- new assigned user, null clearvoid remove(AlarmId id)
id
- alarmMap<Alarm.SeverityLevel,Long> getAlarmCounts(DeviceId deviceId)
deviceId
- the deviceMap<Alarm.SeverityLevel,Long> getAlarmCounts()
Alarm getAlarm(AlarmId alarmId)
alarmId
- alarm identifierSet<Alarm> getAlarms()
Set<Alarm> getActiveAlarms()
Set<Alarm> getAlarms(Alarm.SeverityLevel severity)
severity
- the alarm severitySet<Alarm> getAlarms(DeviceId deviceId)
deviceId
- the device to use when searching alarms.default Set<Alarm> getActiveAlarms(DeviceId deviceId)
deviceId
- the device to use when searching alarms.Set<Alarm> getAlarms(DeviceId deviceId, AlarmEntityId source)
deviceId
- the devicesource
- the source within the deviceSet<Alarm> getAlarmsForLink(ConnectPoint src, ConnectPoint dst)
src
- one end of the linkdst
- one end of the link