public static final class HealthMessage.Entry extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Entry(HealthMessage.Entry entry) |
Entry(SystemAdvertisement adv,
String state,
long seqID)
Creates a Entry with id and state
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object obj) |
long |
getSeqID() |
long |
getSrcStartTime() |
int |
hashCode() |
boolean |
isFromSameMember(HealthMessage.Entry other)
Since MasterNode reports on other peers that they are DEAD or INDOUBT, be sure not to compare sequence ids between
a peer and a MasterNode health message report on that peer.
|
boolean |
isFromSameMemberStartup(HealthMessage.Entry other)
Detect when one hm is from a failed member and the new hm is from the restart of that member.
|
boolean |
isState(int theState) |
String |
toString() |
public Entry(SystemAdvertisement adv, String state, long seqID)
adv - SystemAdvertisementstate - state valueseqID - health message sequence IDpublic Entry(HealthMessage.Entry entry)
public long getSeqID()
public long getSrcStartTime()
public boolean isFromSameMember(HealthMessage.Entry other)
other - the entry of other peerpublic boolean isFromSameMemberStartup(HealthMessage.Entry other)
other - the entry of other peerpublic boolean isState(int theState)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.