|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.partition.PartitionLostEvent
public class PartitionLostEvent
The event that is fired when a partition lost its owner and all backups.
Partition
,
PartitionService
,
PartitionLostListener
Constructor Summary | |
---|---|
PartitionLostEvent()
|
|
PartitionLostEvent(int partitionId,
int lostBackupCount,
Address eventSource)
|
Method Summary | |
---|---|
Address |
getEventSource()
Returns the address of the node that dispatches the event |
int |
getLostBackupCount()
Returns the number of lost backups for the partition. |
int |
getPartitionId()
Returns the lost partition id. |
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 PartitionLostEvent()
public PartitionLostEvent(int partitionId, int lostBackupCount, Address eventSource)
Method Detail |
---|
public int getPartitionId()
getPartitionId
in interface PartitionEvent
public int getLostBackupCount()
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 |