Package org.onosproject.net.host
Class HostEvent
- java.lang.Object
- 
- org.onosproject.event.AbstractEvent<HostEvent.Type,Host>
- 
- org.onosproject.net.host.HostEvent
 
 
- 
- All Implemented Interfaces:
- Event<HostEvent.Type,Host>
 
 public class HostEvent extends AbstractEvent<HostEvent.Type,Host> Describes end-station host event.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classHostEvent.TypeType of host events.
 - 
Constructor SummaryConstructors Constructor Description HostEvent(HostEvent.Type type, Host host)Creates an event of a given type and for the specified host and the current time.HostEvent(HostEvent.Type type, Host host, long time)Creates an event of a given type and for the specified host and time.HostEvent(HostEvent.Type type, Host host, Host prevSubject)Creates an event with previous subject.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HostprevSubject()Gets the previous subject in this host event.java.lang.StringtoString()- 
Methods inherited from class org.onosproject.event.AbstractEventsubject, time, type
 
- 
 
- 
- 
- 
Constructor Detail- 
HostEventpublic HostEvent(HostEvent.Type type, Host host) Creates an event of a given type and for the specified host and the current time.- Parameters:
- type- host event type
- host- event host subject
 
 - 
HostEventpublic HostEvent(HostEvent.Type type, Host host, long time) Creates an event of a given type and for the specified host and time.- Parameters:
- type- host event type
- host- event host subject
- time- occurrence time
 
 - 
HostEventpublic HostEvent(HostEvent.Type type, Host host, Host prevSubject) Creates an event with previous subject. The previous subject is ignored if the type is not moved or updated- Parameters:
- type- host event type
- host- event host subject
- prevSubject- previous host subject
 
 
- 
 - 
Method Detail- 
prevSubjectpublic Host prevSubject() Gets the previous subject in this host event.- Returns:
- the previous subject, or null if previous subject is not specified.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- AbstractEvent<HostEvent.Type,Host>
 
 
- 
 
-