#include <Cluster.h>
Definition at line 17 of file Cluster.h.
◆ Cluster()
◆ member()
Determines whether a node belongs in the cluster.
- Returns
- std::nullopt if the node isn't a member, otherwise, the comment associated with the node (which may be an empty string).
Definition at line 19 of file Cluster.cpp.
◆ size()
The number of nodes in the cluster list.
Definition at line 30 of file Cluster.cpp.
◆ update()
Store information about the state of a cluster node.
- Parameters
-
| identity | The node's public identity |
| name | The node's name (may be empty) |
- Returns
- true if we updated our information
Definition at line 38 of file Cluster.cpp.
◆ for_each()
Invokes the callback once for every cluster node.
- Note
- You are not allowed to call
update from within the callback.
Definition at line 64 of file Cluster.cpp.
◆ load()
| bool ripple::Cluster::load |
( |
Section const & |
nodes | ) |
|
Load the list of cluster nodes.
The section contains entries consisting of a base58 encoded node public key, optionally followed by a comment.
- Returns
- false if an entry could not be parsed or contained an invalid node public key, true otherwise.
Definition at line 72 of file Cluster.cpp.
◆ nodes_
◆ mutex_
◆ j_