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