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
-
ALIVE1
- Service is alive and well
-
ALIVE2
- Service is alive, but missed a few heartbeats
-
ALIVE3
- Service is possibly down, give it one more chance
-
DEAD
- Service is presumed down
-
host
-
-
lastHeartbeat
-
-
priority
-
-
service
-
-
state
-
-
UNKNOWN
-
-
HeartbeatMsg(String, String, int, Date)
-
-
getDate()
-
-
getHost()
-
-
getPriority()
-
-
getService()
-
-
getState()
-
-
setDate(Date)
-
-
setState(int)
-
-
toString()
-
service
protected String service
host
protected String host
priority
protected int priority
lastHeartbeat
protected Date lastHeartbeat
state
protected int state
ALIVE1
public static final int ALIVE1
- Service is alive and well
ALIVE2
public static final int ALIVE2
- Service is alive, but missed a few heartbeats
ALIVE3
public static final int ALIVE3
- Service is possibly down, give it one more chance
DEAD
public static final int DEAD
- Service is presumed down
UNKNOWN
public static final int UNKNOWN
HeartbeatMsg
public HeartbeatMsg(String service,
String host,
int priority,
Date lastHeartbeat)
setState
public void setState(int state)
getState
public int getState()
getService
public String getService()
getHost
public String getHost()
setDate
public void setDate(Date d)
getDate
public Date getDate()
getPriority
public int getPriority()
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index