Package org.onosproject.net.intf
Class InterfaceEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<InterfaceEvent.Type,Interface>
-
- org.onosproject.net.intf.InterfaceEvent
-
- All Implemented Interfaces:
Event<InterfaceEvent.Type,Interface>
public class InterfaceEvent extends AbstractEvent<InterfaceEvent.Type,Interface>
Describes an interface event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InterfaceEvent.Type
-
Constructor Summary
Constructors Constructor Description InterfaceEvent(InterfaceEvent.Type type, Interface subject)
Creates an interface event with type and subject.InterfaceEvent(InterfaceEvent.Type type, Interface subject, long time)
Creates an interface event with type, subject and time of event.InterfaceEvent(InterfaceEvent.Type type, Interface subject, Interface prevSubject)
Creates an interface event with type, subject and previous subject.InterfaceEvent(InterfaceEvent.Type type, Interface subject, Interface prevSubject, long time)
Creates an interface event with type, subject, previous subject and time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Interface
prevSubject()
Returns the previous interface subject.String
toString()
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, type
-
-
-
-
Constructor Detail
-
InterfaceEvent
public InterfaceEvent(InterfaceEvent.Type type, Interface subject)
Creates an interface event with type and subject.- Parameters:
type
- event typesubject
- subject interface
-
InterfaceEvent
public InterfaceEvent(InterfaceEvent.Type type, Interface subject, long time)
Creates an interface event with type, subject and time of event.- Parameters:
type
- event typesubject
- subject interfacetime
- time of event
-
InterfaceEvent
public InterfaceEvent(InterfaceEvent.Type type, Interface subject, Interface prevSubject)
Creates an interface event with type, subject and previous subject.- Parameters:
type
- event typesubject
- subject interfaceprevSubject
- previous interface subject
-
InterfaceEvent
public InterfaceEvent(InterfaceEvent.Type type, Interface subject, Interface prevSubject, long time)
Creates an interface event with type, subject, previous subject and time.- Parameters:
type
- event typesubject
- subject interfaceprevSubject
- previous interface subjecttime
- time of event
-
-
Method Detail
-
prevSubject
public Interface prevSubject()
Returns the previous interface subject.- Returns:
- previous subject of interface or null if the event is not interface specific.
-
toString
public String toString()
- Overrides:
toString
in classAbstractEvent<InterfaceEvent.Type,Interface>
-
-