com.sun.enterprise.mgmt
Class HealthMessage

java.lang.Object
  extended by com.sun.enterprise.mgmt.HealthMessage
All Implemented Interfaces:
Serializable

public class HealthMessage
extends Object
implements Serializable

This class contains health states of members HealthMonitor uses this messages to check the member's health.

See Also:
Serialized Form

Nested Class Summary
static class HealthMessage.Entry
          Entries class
 
Constructor Summary
HealthMessage()
          Default Constructor
 
Method Summary
 void add(HealthMessage.Entry entry)
           
 List<HealthMessage.Entry> getEntries()
          gets the entries list
 PeerID getSrcID()
          gets the src id
 void remove(HealthMessage.Entry entry)
           
 void setSrcID(PeerID id)
          sets the unique id
 String toString()
          returns the document string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HealthMessage

public HealthMessage()
Default Constructor

Method Detail

getEntries

public List<HealthMessage.Entry> getEntries()
gets the entries list

Returns:
List The List containing Entries

getSrcID

public PeerID getSrcID()
gets the src id

Returns:
Peerid The sender's peer id

add

public void add(HealthMessage.Entry entry)

remove

public void remove(HealthMessage.Entry entry)

setSrcID

public void setSrcID(PeerID id)
sets the unique id

Parameters:
id - The id

toString

public String toString()
returns the document string representation of this object

Overrides:
toString in class Object
Returns:
String representation of the of this message type


Copyright © 2012. All Rights Reserved.