Package org.onosproject.net.topology
Class TopologyEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<TopologyEvent.Type,Topology>
-
- org.onosproject.net.topology.TopologyEvent
-
- All Implemented Interfaces:
Event<TopologyEvent.Type,Topology>
public class TopologyEvent extends AbstractEvent<TopologyEvent.Type,Topology>
Describes network topology event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopologyEvent.Type
Type of topology events.
-
Constructor Summary
Constructors Constructor Description TopologyEvent(TopologyEvent.Type type, Topology topology, java.util.List<Event> reasons)
Creates an event of a given type and for the specified topology and the current time.TopologyEvent(TopologyEvent.Type type, Topology topology, java.util.List<Event> reasons, long time)
Creates an event of a given type and for the specified topology and time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Event>
reasons()
Returns the list of events that triggered the topology change.-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
Constructor Detail
-
TopologyEvent
public TopologyEvent(TopologyEvent.Type type, Topology topology, java.util.List<Event> reasons)
Creates an event of a given type and for the specified topology and the current time.- Parameters:
type
- topology event typetopology
- event topology subjectreasons
- list of events that triggered topology change
-
TopologyEvent
public TopologyEvent(TopologyEvent.Type type, Topology topology, java.util.List<Event> reasons, long time)
Creates an event of a given type and for the specified topology and time.- Parameters:
type
- link event typetopology
- event topology subjectreasons
- list of events that triggered topology changetime
- occurrence time
-
-
Method Detail
-
reasons
public java.util.List<Event> reasons()
Returns the list of events that triggered the topology change.- Returns:
- list of events responsible for change in topology; null if initial topology computation
-
-