public final class VertexAssignmentEvent extends AbstractEvent implements ManagementEvent
VertexAssignmentEvent can be used to notify other objects about changes in the assignment of vertices to
instances.| Constructor and Description |
|---|
VertexAssignmentEvent()
Constructor for serialization/deserialization.
|
VertexAssignmentEvent(long timestamp,
ManagementVertexID managementVertexID,
String instanceName)
Constructs a new event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getInstanceName()
Returns the name of the instance the vertex is now assigned to.
|
ManagementVertexID |
getVertexID()
Returns the ID of the vertex this event refers to.
|
int |
hashCode() |
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
getSequenceNumber, getTimestamp, timestampToStringpublic VertexAssignmentEvent(long timestamp,
ManagementVertexID managementVertexID,
String instanceName)
timestamp - the timestamp of the eventmanagementVertexID - identifies the vertex this event refers toinstanceName - the name of the instance the vertex is now assigned topublic VertexAssignmentEvent()
public ManagementVertexID getVertexID()
public String getInstanceName()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableread in class AbstractEventIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritablewrite in class AbstractEventIOExceptionpublic boolean equals(Object obj)
equals in class AbstractEventpublic int hashCode()
hashCode in class AbstractEventCopyright © 2014 The Apache Software Foundation. All rights reserved.