com.hazelcast.impl.partition
Class MigrationTask

java.lang.Object
  extended by com.hazelcast.impl.partition.MigrationTask
All Implemented Interfaces:
HazelcastInstanceAware, DataSerializable, Serializable, Callable<Boolean>

public class MigrationTask
extends Object
implements Callable<Boolean>, DataSerializable, HazelcastInstanceAware

See Also:
Serialized Form

Constructor Summary
MigrationTask()
           
MigrationTask(int partitionId, CostAwareRecordList costAwareRecordList, int replicaIndex, Address from)
           
 
Method Summary
 Boolean call()
           
 void readData(DataInput in)
           
 void setHazelcastInstance(HazelcastInstance hazelcastInstance)
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationTask

public MigrationTask()

MigrationTask

public MigrationTask(int partitionId,
                     CostAwareRecordList costAwareRecordList,
                     int replicaIndex,
                     Address from)
              throws IOException
Throws:
IOException
Method Detail

call

public Boolean call()
             throws Exception
Specified by:
call in interface Callable<Boolean>
Throws:
Exception

writeData

public void writeData(DataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

readData

public void readData(DataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException

setHazelcastInstance

public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
Specified by:
setHazelcastInstance in interface HazelcastInstanceAware


Copyright .0-RC1; 2008-2011 Hazel Ltd. All Rights Reserved.