com.sun.enterprise.mgmt
Class HealthMessage.Entry

java.lang.Object
  extended by 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
HealthMessage.Entry(HealthMessage.Entry entry)
           
HealthMessage.Entry(SystemAdvertisement adv, String state, long seqID)
          Creates a Entry with id and state
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HealthMessage.Entry

public HealthMessage.Entry(SystemAdvertisement adv,
                           String state,
                           long seqID)
Creates a Entry with id and state

Parameters:
adv - SystemAdvertisement
state - state value
seqID - health message sequence ID

HealthMessage.Entry

public HealthMessage.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 -
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 -
Returns:
true if same instantiation of member sent this health message.

isState

public boolean isState(int theState)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2012. All Rights Reserved.