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 classClusterEvent.TypeType 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 booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()- 
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:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classAbstractEvent<ClusterEvent.Type,ControllerNode>
 
 - 
 
 -