Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
cluster::ClusterCommunicationServiceInterface Class Referenceabstract

Interface for the cluster communication service. More...

#include <ClusterCommunicationServiceInterface.hpp>

Inheritance diagram for cluster::ClusterCommunicationServiceInterface:

Public Member Functions

virtual ClioNode selfData () const =0
 Get the data of the current node.
 
virtual std::expected< std::vector< ClioNode >, std::string > clusterData () const =0
 Get the data of all nodes in the cluster (including self).
 

Detailed Description

Interface for the cluster communication service.

Member Function Documentation

◆ clusterData()

virtual std::expected< std::vector< ClioNode >, std::string > cluster::ClusterCommunicationServiceInterface::clusterData ( ) const
nodiscardpure virtual

Get the data of all nodes in the cluster (including self).

Returns
The data of all nodes in the cluster or error if the service is not healthy.

Implemented in cluster::ClusterCommunicationService.

◆ selfData()

virtual ClioNode cluster::ClusterCommunicationServiceInterface::selfData ( ) const
nodiscardpure virtual

Get the data of the current node.

Returns
The data of the current node.

Implemented in cluster::ClusterCommunicationService.


The documentation for this class was generated from the following file: