public class MigrationInfo extends Object implements IdentifiedDataSerializable
Modifier and Type | Class and Description |
---|---|
static class |
MigrationInfo.MigrationStatus |
Constructor and Description |
---|
MigrationInfo() |
MigrationInfo(int partitionId,
Address source,
String sourceUuid,
Address destination,
String destinationUuid,
int sourceCurrentReplicaIndex,
int sourceNewReplicaIndex,
int destinationCurrentReplicaIndex,
int destinationNewReplicaIndex) |
Modifier and Type | Method and Description |
---|---|
void |
doneProcessing() |
boolean |
equals(Object o) |
Address |
getDestination() |
int |
getDestinationCurrentReplicaIndex() |
int |
getDestinationNewReplicaIndex() |
String |
getDestinationUuid() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Address |
getMaster() |
int |
getPartitionId() |
Address |
getSource() |
int |
getSourceCurrentReplicaIndex() |
int |
getSourceNewReplicaIndex() |
String |
getSourceUuid() |
MigrationInfo.MigrationStatus |
getStatus() |
int |
hashCode() |
boolean |
isProcessing() |
boolean |
isValid() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
MigrationInfo |
setMaster(Address master) |
MigrationInfo |
setStatus(MigrationInfo.MigrationStatus status) |
boolean |
startProcessing() |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Address getSource()
public String getSourceUuid()
public Address getDestination()
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
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.