public class MigrationInfo extends Object implements IdentifiedDataSerializable, Versioned
Modifier and Type | Class and Description |
---|---|
static class |
MigrationInfo.MigrationStatus |
Constructor and Description |
---|
MigrationInfo() |
MigrationInfo(int partitionId,
PartitionReplica source,
PartitionReplica destination,
int sourceCurrentReplicaIndex,
int sourceNewReplicaIndex,
int destinationCurrentReplicaIndex,
int destinationNewReplicaIndex) |
public MigrationInfo()
public MigrationInfo(int partitionId, PartitionReplica source, PartitionReplica destination, int sourceCurrentReplicaIndex, int sourceNewReplicaIndex, int destinationCurrentReplicaIndex, int destinationNewReplicaIndex)
public PartitionReplica getSource()
public Address getSourceAddress()
public PartitionReplica getDestination()
public Address getDestinationAddress()
public int getPartitionId()
public int getSourceCurrentReplicaIndex()
public int getSourceNewReplicaIndex()
public int getDestinationCurrentReplicaIndex()
public int getDestinationNewReplicaIndex()
public Address getMaster()
public MigrationInfo setMaster(Address master)
public boolean startProcessing()
public void doneProcessing()
public MigrationInfo.MigrationStatus getStatus()
public MigrationInfo setStatus(MigrationInfo.MigrationStatus status)
public boolean isValid()
public int getInitialPartitionVersion()
public MigrationInfo setInitialPartitionVersion(int initialPartitionVersion)
public int getPartitionVersionIncrement()
public MigrationInfo setPartitionVersionIncrement(int partitionVersionIncrement)
public int getFinalPartitionVersion()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.