public class NodeMonitor extends Object
Constructor and Description |
---|
NodeMonitor(VespaBackEndSearcher node)
Creates a new node monitor for a node
|
Modifier and Type | Method and Description |
---|---|
void |
failed(ErrorMessage error)
Called when this node fails.
|
VespaBackEndSearcher |
getNode() |
boolean |
isWorking()
Returns whether this node is currently in a state suitable for receiving
traffic.
|
void |
responded(boolean searchNodesOnline)
Called when a response is received from this node.
|
protected static Logger log
public NodeMonitor(VespaBackEndSearcher node)
public boolean isWorking()
public VespaBackEndSearcher getNode()
public void failed(ErrorMessage error)
error
- a container which should contain a short descriptionpublic void responded(boolean searchNodesOnline)
Copyright © 2018. All rights reserved.