|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.core.MigrationEvent
public class MigrationEvent
An event fired when a partition migration starts, completes or fails.
Partition
,
PartitionService
,
MigrationListener
Nested Class Summary | |
---|---|
static class |
MigrationEvent.MigrationStatus
Migration status: Started, completed or failed |
Constructor Summary | |
---|---|
MigrationEvent()
|
|
MigrationEvent(int partitionId,
Member oldOwner,
Member newOwner,
MigrationEvent.MigrationStatus status)
|
Method Summary | |
---|---|
Member |
getNewOwner()
Returns the new owner of the migrating partition |
Member |
getOldOwner()
Returns the old owner of the migrating partition |
int |
getPartitionId()
Returns the id of the partition which is (or is being) migrated |
MigrationEvent.MigrationStatus |
getStatus()
Returns the status of the migration: started, completed or failed |
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
String |
toString()
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MigrationEvent()
public MigrationEvent(int partitionId, Member oldOwner, Member newOwner, MigrationEvent.MigrationStatus status)
Method Detail |
---|
public int getPartitionId()
public Member getOldOwner()
public Member getNewOwner()
public MigrationEvent.MigrationStatus getStatus()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |