| Constructor and Description |
|---|
ANodeStability(int nodeStability,
int agentMetricsRate) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
missedNode(Node n,
int c)
Called if a heartbeat is missed, in case caller wants to do take some action
such as logging the event.
|
void |
nodeArrives(Node n)
Record the arrival of a node.
|
abstract void |
nodeDeath(Map<Node,Node> nodes)
This callback is invoked when node death is suspected.
|
abstract void |
nodeRecovers(Node n)
Called when removing a node had missed heartbeats but has recovered.
|
void |
run()
Thread main, run forvever checking for delinquent nodes.
|
void |
shutdown()
Graceful shutdown of the thread.
|
void |
start()
Starts the watchdog thread.
|
public void start()
public abstract void nodeDeath(Map<Node,Node> nodes)
public void nodeArrives(Node n)
public abstract void missedNode(Node n, int c)
public abstract void nodeRecovers(Node n)
public void shutdown()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.