Package org.onosproject.upgrade
Class UpgradeEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<UpgradeEvent.Type,Upgrade>
-
- org.onosproject.upgrade.UpgradeEvent
-
- All Implemented Interfaces:
Event<UpgradeEvent.Type,Upgrade>
@Beta public class UpgradeEvent extends AbstractEvent<UpgradeEvent.Type,Upgrade>
Upgrade event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpgradeEvent.Type
Type of upgrade-related events.
-
Constructor Summary
Constructors Constructor Description UpgradeEvent(UpgradeEvent.Type type, Upgrade state)
Creates an event of a given type and for the specified state and the current time.UpgradeEvent(UpgradeEvent.Type type, Upgrade state, long time)
Creates an event of a given type and for the specified state and time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, type
-
-
-
-
Constructor Detail
-
UpgradeEvent
public UpgradeEvent(UpgradeEvent.Type type, Upgrade state)
Creates an event of a given type and for the specified state and the current time.- Parameters:
type
- upgrade event typestate
- upgrade state
-
UpgradeEvent
public UpgradeEvent(UpgradeEvent.Type type, Upgrade state, long time)
Creates an event of a given type and for the specified state and time.- Parameters:
type
- upgrade event typestate
- upgrade statetime
- occurrence time
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractEvent<UpgradeEvent.Type,Upgrade>
-
-