public class MigratingPartition extends Object implements DataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected Address |
from |
protected int |
partitionId |
protected int |
replicaIndex |
protected Address |
to |
| Constructor and Description |
|---|
MigratingPartition() |
MigratingPartition(int partitionId,
int replicaIndex,
Address from,
Address to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getCreationTime() |
Address |
getFromAddress() |
int |
getPartitionId() |
int |
getReplicaIndex() |
Address |
getToAddress() |
int |
hashCode() |
void |
readData(DataInput in) |
String |
toString() |
void |
writeData(DataOutput out) |
protected int partitionId
protected Address from
protected Address to
protected int replicaIndex
public MigratingPartition()
public MigratingPartition(int partitionId,
int replicaIndex,
Address from,
Address to)
public Address getFromAddress()
public Address getToAddress()
public int getReplicaIndex()
public long getCreationTime()
public void writeData(DataOutput out) throws IOException
writeData in interface DataSerializableIOExceptionpublic void readData(DataInput in) throws IOException
readData in interface DataSerializableIOExceptionpublic int getPartitionId()
Copyright .0; 2008-2011 Hazel Ltd. All Rights Reserved.