Package org.onosproject.alarm
Class AlarmEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<AlarmEvent.Type,Alarm>
-
- org.onosproject.alarm.AlarmEvent
-
- All Implemented Interfaces:
Event<AlarmEvent.Type,Alarm>
public class AlarmEvent extends AbstractEvent<AlarmEvent.Type,Alarm>
Entity that represents Alarm events. Note: although the event will itself have a time, consumers may be more interested in the times embedded in the alarms themselves.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AlarmEvent.Type
Type of alarm event.
-
Constructor Summary
Constructors Constructor Description AlarmEvent(AlarmEvent.Type type, Alarm alarm)
Creates an event due to one alarm.
-
Method Summary
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
Constructor Detail
-
AlarmEvent
public AlarmEvent(AlarmEvent.Type type, Alarm alarm)
Creates an event due to one alarm.- Parameters:
type
- alarm typealarm
- the alarm related to the event.
-
-