1#ifndef XRPL_OVERLAY_CLUSTER_H_INCLUDED 
    2#define XRPL_OVERLAY_CLUSTER_H_INCLUDED 
    4#include <xrpld/overlay/ClusterNode.h> 
    6#include <xrpl/basics/BasicConfig.h> 
    7#include <xrpl/basics/chrono.h> 
    8#include <xrpl/beast/utility/Journal.h> 
    9#include <xrpl/protocol/PublicKey.h> 
A generic endpoint for log messages.
 
PublicKey const & identity() const
 
std::set< ClusterNode, Comparator > nodes_
 
void for_each(std::function< void(ClusterNode const &)> func) const
Invokes the callback once for every cluster node.
 
std::size_t size() const
The number of nodes in the cluster list.
 
bool load(Section const &nodes)
Load the list of cluster nodes.
 
bool update(PublicKey const &identity, std::string name, std::uint32_t loadFee=0, NetClock::time_point reportTime=NetClock::time_point{})
Store information about the state of a cluster node.
 
std::optional< std::string > member(PublicKey const &node) const
Determines whether a node belongs in the cluster.
 
Holds a collection of configuration values.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
bool operator()(ClusterNode const &lhs, PublicKey const &rhs) const
 
bool operator()(PublicKey const &lhs, ClusterNode const &rhs) const
 
bool operator()(ClusterNode const &lhs, ClusterNode const &rhs) const