com.caucho.cloud.network
Class ServerHeartbeatState

java.lang.Object
  extended by 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 .


Method Summary
 java.lang.String getHeartbeatState()
           
 long getLastHeartbeatTime()
           
 long getStateTimestamp()
          Returns the last state change timestamp.
 boolean isHeartbeatActive()
          Test if the server is active, i.e.
 boolean notifyHeartbeatStart()
          Notify that a start event has been received.
 boolean notifyHeartbeatStop()
          Notify that a stop event has been received.
 java.lang.String toString()
           
 void updateTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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