public class TopologyEvent extends AbstractEvent<TopologyEvent.Type,Topology>
Modifier and Type | Class and Description |
---|---|
static class |
TopologyEvent.Type
Type of topology events.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Event> |
reasons()
Returns the list of events that triggered the topology change.
|
subject, time, toString, type
public TopologyEvent(TopologyEvent.Type type, Topology topology, java.util.List<Event> reasons)
type
- topology event typetopology
- event topology subjectreasons
- list of events that triggered topology changepublic TopologyEvent(TopologyEvent.Type type, Topology topology, java.util.List<Event> reasons, long time)
type
- link event typetopology
- event topology subjectreasons
- list of events that triggered topology changetime
- occurrence timepublic java.util.List<Event> reasons()