Package org.onosproject.cluster
Class ClusterEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<ClusterEvent.Type,ControllerNode>
-
- org.onosproject.cluster.ClusterEvent
-
- All Implemented Interfaces:
Event<ClusterEvent.Type,ControllerNode>
public class ClusterEvent extends AbstractEvent<ClusterEvent.Type,ControllerNode>
Describes cluster-related event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterEvent.Type
Type of cluster-related events.
-
Constructor Summary
Constructors Constructor Description ClusterEvent(ClusterEvent.Type type, ControllerNode instance)
Creates an event of a given type and for the specified instance and the current time.ClusterEvent(ClusterEvent.Type type, ControllerNode instance, long time)
Creates an event of a given type and for the specified device 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
-
ClusterEvent
public ClusterEvent(ClusterEvent.Type type, ControllerNode instance)
Creates an event of a given type and for the specified instance and the current time.- Parameters:
type
- cluster event typeinstance
- cluster device subject
-
ClusterEvent
public ClusterEvent(ClusterEvent.Type type, ControllerNode instance, long time)
Creates an event of a given type and for the specified device and time.- Parameters:
type
- device event typeinstance
- event device subjecttime
- 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<ClusterEvent.Type,ControllerNode>
-
-