com.caucho.cloud.network
Class ServerHeartbeatState
java.lang.Object
com.caucho.cloud.network.ServerHeartbeatState
public final class ServerHeartbeatState
- extends java.lang.Object
Defines a member of the cluster, corresponds to in the conf file.
A ServerConnector
obtained with #getServerConnector
is used to actually
communicate with this ClusterServer when it is active in another instance of
Resin .
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
isHeartbeatActive
public boolean isHeartbeatActive()
- Test if the server is active, i.e. has received an active message.
getHeartbeatState
public java.lang.String getHeartbeatState()
getStateTimestamp
public long getStateTimestamp()
- Returns the last state change timestamp.
getLastHeartbeatTime
public long getLastHeartbeatTime()
notifyHeartbeatStart
public boolean notifyHeartbeatStart()
- Notify that a start event has been received.
notifyHeartbeatStop
public boolean notifyHeartbeatStop()
- Notify that a stop event has been received.
updateTimeout
public void updateTimeout(long timeout)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object