All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.meitca.concordia.service.HeartbeatMsg


java.lang.Object

   |

   +----COM.meitca.concordia.service.HeartbeatMsg


public class HeartbeatMsg
extends Object
implements Serializable
An object containing essential service provider information, sent from an active ServiceBridge to a FailsafeDirectory.

See Also:
FailsafeDirectoryImpl

Variable Index

 o ALIVE1
Service is alive and well
 o ALIVE2
Service is alive, but missed a few heartbeats
 o ALIVE3
Service is possibly down, give it one more chance
 o DEAD
Service is presumed down
 o host
 o lastHeartbeat
 o priority
 o service
 o state
 o UNKNOWN

Constructor Index

 o HeartbeatMsg(String, String, int, Date)

Method Index

 o getDate()
 o getHost()
 o getPriority()
 o getService()
 o getState()
 o setDate(Date)
 o setState(int)
 o toString()

Variables

 o service

 protected String service

 o host

 protected String host

 o priority

 protected int priority

 o lastHeartbeat

 protected Date lastHeartbeat

 o state

 protected int state

 o ALIVE1

 public static final int ALIVE1

Service is alive and well

 o ALIVE2

 public static final int ALIVE2

Service is alive, but missed a few heartbeats

 o ALIVE3

 public static final int ALIVE3

Service is possibly down, give it one more chance

 o DEAD

 public static final int DEAD

Service is presumed down

 o UNKNOWN

 public static final int UNKNOWN

Constructors

 o HeartbeatMsg

 public HeartbeatMsg(String service,

                     String host,

                     int priority,

                     Date lastHeartbeat)

Methods

 o setState

 public void setState(int state)

 o getState

 public int getState()

 o getService

 public String getService()

 o getHost

 public String getHost()

 o setDate

 public void setDate(Date d)

 o getDate

 public Date getDate()

 o getPriority

 public int getPriority()

 o toString

 public String toString()

Overrides:
toString in class Object


All Packages  Class Hierarchy  This Package  Previous  Next  Index