|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.partition.InternalPartitionLostEvent
@PrivateApi public class InternalPartitionLostEvent
Internal event that is dispatched to @see com.hazelcast.spi.PartitionAwareService#onPartitionLost()
It contains the partition id, number of replicas that is lost and the address of node that detects the partition lost
Constructor Summary | |
---|---|
InternalPartitionLostEvent()
|
|
InternalPartitionLostEvent(int partitionId,
int lostReplicaIndex,
Address eventSource)
|
Method Summary | |
---|---|
Address |
getEventSource()
The address of the node that detects the partition lost |
int |
getLostReplicaIndex()
0-based replica index that is lost for the partition For instance, 0 means only the owner of the partition is lost, 1 means both the owner and first backup are lost |
int |
getPartitionId()
The partition id that is lost |
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
String |
toString()
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InternalPartitionLostEvent()
public InternalPartitionLostEvent(int partitionId, int lostReplicaIndex, Address eventSource)
Method Detail |
---|
public int getPartitionId()
public int getLostReplicaIndex()
public Address getEventSource()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |