Package org.onosproject.net.host
Class HostProbingEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<HostProbingEvent.Type,HostProbe>
-
- org.onosproject.net.host.HostProbingEvent
-
- All Implemented Interfaces:
Event<HostProbingEvent.Type,HostProbe>
public class HostProbingEvent extends AbstractEvent<HostProbingEvent.Type,HostProbe>
Describes host probing event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostProbingEvent.Type
Type of host probing events.
-
Constructor Summary
Constructors Constructor Description HostProbingEvent(HostProbingEvent.Type type, HostProbe subject)
Creates an event of a given type and for the specified host probe and the current time.HostProbingEvent(HostProbingEvent.Type type, HostProbe subject, long time)
Creates an event of a given type and for the specified host probe and time.HostProbingEvent(HostProbingEvent.Type type, HostProbe subject, HostProbe prevSubject)
Creates an event with previous subject.HostProbingEvent(HostProbingEvent.Type type, HostProbe subject, HostProbe prevSubject, long time)
Creates an event with previous subject and specified time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostProbe
prevSubject()
Gets the previous subject in this host probe event.java.lang.String
toString()
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, type
-
-
-
-
Constructor Detail
-
HostProbingEvent
public HostProbingEvent(HostProbingEvent.Type type, HostProbe subject)
Creates an event of a given type and for the specified host probe and the current time.- Parameters:
type
- probing host event typesubject
- event subject
-
HostProbingEvent
public HostProbingEvent(HostProbingEvent.Type type, HostProbe subject, long time)
Creates an event of a given type and for the specified host probe and time.- Parameters:
type
- probing host event typesubject
- event subjecttime
- occurrence time
-
HostProbingEvent
public HostProbingEvent(HostProbingEvent.Type type, HostProbe subject, HostProbe prevSubject)
Creates an event with previous subject. The previous subject is ignored if the type is not PROBE_TIMEOUT- Parameters:
type
- host event typesubject
- event subjectprevSubject
- previous host subject
-
HostProbingEvent
public HostProbingEvent(HostProbingEvent.Type type, HostProbe subject, HostProbe prevSubject, long time)
Creates an event with previous subject and specified time. The previous subject is ignored if the type is not PROBE_TIMEOUT- Parameters:
type
- host event typesubject
- event subjectprevSubject
- previous host subjecttime
- occurrence time
-
-
Method Detail
-
prevSubject
public HostProbe prevSubject()
Gets the previous subject in this host probe event.- Returns:
- the previous subject, or null if previous subject is not specified.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractEvent<HostProbingEvent.Type,HostProbe>
-
-