|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 being) migrated |
MigrationEvent.MigrationStatus |
getStatus()
Returns the status of the migration: Started, completed or failed |
void |
readData(com.hazelcast.nio.ObjectDataInput in)
|
String |
toString()
|
void |
writeData(com.hazelcast.nio.ObjectDataOutput out)
|
| 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(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
writeData in interface DataSerializableIOException
public void readData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
readData in interface DataSerializableIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||