com.hazelcast.impl.partition
Class MigrationTask
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MigrationTask
public MigrationTask()
MigrationTask
public MigrationTask(int partitionId,
CostAwareRecordList costAwareRecordList,
int replicaIndex,
Address from)
throws IOException
- Throws:
IOException
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; 2008-2011 Hazel Ltd. All Rights Reserved.