パッケージ org.piax.gtrans.ov.ddll
クラス NodeMonitor
java.lang.Object
org.piax.gtrans.ov.ddll.NodeMonitor
public class NodeMonitor extends Object
a class for monitoring remote nodes.
this class implements a kind of `heart-beat' mechanism. we send a request message (getStatMulti) to remote node and wait for the corresponding reply message (setStatMulti).
if there are multiple monitor requests to the same node, only single request message is sent to the node.
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static intPING_TIMEOUTtimeout value. -
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NodeMonitor(NodeManager manager, Timer timer)constructor. -
メソッドの概要
-
フィールド詳細
-
PING_TIMEOUT
public static int PING_TIMEOUTtimeout value.if we send a PING message to a remote node and no STAT message is received within this period, the remote node is considered to be failed.
-
-
コンストラクタの詳細
-
NodeMonitor
constructor.- パラメータ:
manager- NodeManager coupled with this instancetimer- Timer instance to handle temporal events
-
-
メソッドの詳細