public interface AlarmService extends ListenerService<AlarmEvent,AlarmListener>
Modifier and Type | Method and Description |
---|---|
java.util.Set<Alarm> |
getActiveAlarms()
Returns all of the ACTIVE alarms.
|
default java.util.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.
|
java.util.Map<Alarm.SeverityLevel,java.lang.Long> |
getAlarmCounts()
Returns summary of alarms on all devices.
|
java.util.Map<Alarm.SeverityLevel,java.lang.Long> |
getAlarmCounts(DeviceId deviceId)
Returns summary of alarms on a given device.
|
java.util.Set<Alarm> |
getAlarms()
Returns all of the alarms.
|
java.util.Set<Alarm> |
getAlarms(Alarm.SeverityLevel severity)
Returns the alarms with the specified severity.
|
java.util.Set<Alarm> |
getAlarms(DeviceId deviceId)
Returns the alarm matching a given device, regardless of source within that device.
|
java.util.Set<Alarm> |
getAlarms(DeviceId deviceId,
AlarmEntityId source)
Returns the alarm for a given device and source.
|
java.util.Set<Alarm> |
getAlarmsForFlow(DeviceId deviceId,
long flowId)
Returns the alarm affecting a given flow.
|
java.util.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,
java.lang.String assignedUser)
Update book-keeping (ie administrative) fields for the alarm matching the specified identifier.
|
Alarm |
updateBookkeepingFields(AlarmId id,
boolean isAcknowledged,
java.lang.String assignedUser)
Deprecated.
1.10.0 Kingfisher
|
addListener, removeListener
@Deprecated Alarm updateBookkeepingFields(AlarmId id, boolean isAcknowledged, java.lang.String assignedUser)
id
- alarm identifierisAcknowledged
- new acknowledged stateassignedUser
- new assigned user, null clearAlarm updateBookkeepingFields(AlarmId id, boolean clear, boolean isAcknowledged, java.lang.String assignedUser)
id
- alarm identifierclear
- ture if the alarm has to be clearedisAcknowledged
- new acknowledged stateassignedUser
- new assigned user, null clearvoid remove(AlarmId id)
id
- alarmjava.util.Map<Alarm.SeverityLevel,java.lang.Long> getAlarmCounts(DeviceId deviceId)
deviceId
- the devicejava.util.Map<Alarm.SeverityLevel,java.lang.Long> getAlarmCounts()
Alarm getAlarm(AlarmId alarmId)
alarmId
- alarm identifierjava.util.Set<Alarm> getAlarms()
java.util.Set<Alarm> getActiveAlarms()
java.util.Set<Alarm> getAlarms(Alarm.SeverityLevel severity)
severity
- the alarm severityjava.util.Set<Alarm> getAlarms(DeviceId deviceId)
deviceId
- the device to use when searching alarms.default java.util.Set<Alarm> getActiveAlarms(DeviceId deviceId)
deviceId
- the device to use when searching alarms.java.util.Set<Alarm> getAlarms(DeviceId deviceId, AlarmEntityId source)
deviceId
- the devicesource
- the source within the devicejava.util.Set<Alarm> getAlarmsForLink(ConnectPoint src, ConnectPoint dst)
src
- one end of the linkdst
- one end of the link