public class ClusterEvent extends AbstractEvent<ClusterEvent.Type,ControllerNode>
Modifier and Type | Class and Description |
---|---|
static class |
ClusterEvent.Type
Type of cluster-related events.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
subject, time, type
public ClusterEvent(ClusterEvent.Type type, ControllerNode instance)
type
- cluster event typeinstance
- cluster device subjectpublic ClusterEvent(ClusterEvent.Type type, ControllerNode instance, long time)
type
- device event typeinstance
- event device subjecttime
- occurrence timepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class AbstractEvent<ClusterEvent.Type,ControllerNode>