public class NodeMonitor extends Object
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 int |
PING_TIMEOUT
timeout value.
|
| コンストラクタと説明 |
|---|
NodeMonitor(NodeManager manager,
Timer timer)
constructor.
|
public static int PING_TIMEOUT
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.
public NodeMonitor(NodeManager manager, Timer timer)
manager - NodeManager coupled with this instancetimer - Timer instance to handle temporal eventsCopyright © 2017. All rights reserved.