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 String getSourceUuid()
public PartitionReplica getDestination()
public Address getDestinationAddress()
public String getDestinationUuid()
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 boolean isProcessing()
public void doneProcessing()
public MigrationInfo.MigrationStatus getStatus()
public MigrationInfo setStatus(MigrationInfo.MigrationStatus status)
public boolean isValid()
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 © 2019 Hazelcast, Inc.. All Rights Reserved.