com.hazelcast.partition
Class MigrationInfo

java.lang.Object
  extended by com.hazelcast.partition.MigrationInfo
All Implemented Interfaces:
DataSerializable

public class MigrationInfo
extends Object
implements DataSerializable


Constructor Summary
MigrationInfo()
           
MigrationInfo(int partitionId, Address source, Address destination)
           
 
Method Summary
 void doneProcessing()
           
 boolean equals(Object o)
           
 Address getDestination()
           
 Address getMaster()
           
 String getMasterUuid()
           
 int getPartitionId()
           
 Address getSource()
           
 int hashCode()
           
 void invalidate()
           
 boolean isProcessing()
           
 boolean isValid()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void setMaster(Address master)
           
 void setMasterUuid(String uuid)
           
 boolean startProcessing()
           
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MigrationInfo

public MigrationInfo()

MigrationInfo

public MigrationInfo(int partitionId,
                     Address source,
                     Address destination)
Method Detail

getSource

public Address getSource()

getDestination

public Address getDestination()

getPartitionId

public int getPartitionId()

setMasterUuid

public void setMasterUuid(String uuid)

getMasterUuid

public String getMasterUuid()

getMaster

public Address getMaster()

setMaster

public void setMaster(Address master)

startProcessing

public boolean startProcessing()

isProcessing

public boolean isProcessing()

doneProcessing

public void doneProcessing()

isValid

public boolean isValid()

invalidate

public void invalidate()

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.