Package org.onosproject.net.driver
Class DriverEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<DriverEvent.Type,Driver>
-
- org.onosproject.net.driver.DriverEvent
-
- All Implemented Interfaces:
Event<DriverEvent.Type,Driver>
public class DriverEvent extends AbstractEvent<DriverEvent.Type,Driver>
Driver configuration change event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DriverEvent.Type
Type of driver events.
-
Constructor Summary
Constructors Constructor Description DriverEvent(DriverEvent.Type type, Driver driver)
Creates an event of a given type and for the specified driver and the current time.DriverEvent(DriverEvent.Type type, Driver driver, long time)
Creates an event of a given type and for the specified driver and time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, type
-
-
-
-
Constructor Detail
-
DriverEvent
public DriverEvent(DriverEvent.Type type, Driver driver)
Creates an event of a given type and for the specified driver and the current time.- Parameters:
type
- device event typedriver
- event driver subject
-
DriverEvent
public DriverEvent(DriverEvent.Type type, Driver driver, long time)
Creates an event of a given type and for the specified driver and time.- Parameters:
type
- device event typedriver
- event driver subjecttime
- occurrence time
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractEvent<DriverEvent.Type,Driver>
-
-