パッケージ 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.

作成者:
k-abe
関連項目:
NodeManagerIf.getStatMulti(Endpoint, DdllKey[]), NodeManagerIf.setStatMulti(Endpoint, Stat[])
  • フィールド詳細

    • PING_TIMEOUT

      public static int PING_TIMEOUT
      timeout 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

      public NodeMonitor​(NodeManager manager, Timer timer)
      constructor.
      パラメータ:
      manager - NodeManager coupled with this instance
      timer - Timer instance to handle temporal events
  • メソッドの詳細