Package com.sun.enterprise.mgmt
Class HealthMessage.Entry
- java.lang.Object
-
- com.sun.enterprise.mgmt.HealthMessage.Entry
-
- All Implemented Interfaces:
Serializable,Cloneable
- Enclosing class:
- HealthMessage
public static final class HealthMessage.Entry extends Object implements Serializable, Cloneable
Entries class- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Entry(SystemAdvertisement adv, String state, long seqID)Creates a Entry with id and stateEntry(HealthMessage.Entry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object obj)longgetSeqID()longgetSrcStartTime()inthashCode()booleanisFromSameMember(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.booleanisFromSameMemberStartup(HealthMessage.Entry other)Detect when one hm is from a failed member and the new hm is from the restart of that member.booleanisState(int theState)StringtoString()
-
-
-
Constructor Detail
-
Entry
public Entry(SystemAdvertisement adv, String state, long seqID)
Creates a Entry with id and state- Parameters:
adv- SystemAdvertisementstate- state valueseqID- health message sequence ID
-
Entry
public Entry(HealthMessage.Entry entry)
-
-
Method Detail
-
getSeqID
public long getSeqID()
-
getSrcStartTime
public long getSrcStartTime()
-
isFromSameMember
public 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.- Parameters:
other- the entry of other peer- Returns:
- true if this HM.entry and other are from same member.
-
isFromSameMemberStartup
public 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.- Parameters:
other- the entry of other peer- Returns:
- true if same instantiation of member sent this health message.
-
isState
public boolean isState(int theState)
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-