|
Clio
develop
The XRP Ledger API server.
|
Represents a node in the cluster. More...
#include <ClioNode.hpp>
Public Types | |
| enum class | DbRole { ReadOnly = 0 , NotWriter = 1 , Writer = 2 , Fallback = 3 , FallbackRecovery = 4 , Max = 4 } |
| Database role of a node in the cluster. More... | |
| using | Uuid = std::shared_ptr<boost::uuids::uuid> |
| using | CUuid = std::shared_ptr<boost::uuids::uuid const> |
Static Public Member Functions | |
| static ClioNode | from (Uuid uuid, etl::WriterStateInterface const &writerState, data::LedgerCacheLoadingStateInterface const &cacheLoadingState) |
| Create a ClioNode from writer state and cache loading state. | |
Public Attributes | |
| Uuid | uuid |
| The UUID of the node. | |
| std::chrono::system_clock::time_point | updateTime |
| The time the data about the node was last updated. | |
| DbRole | dbRole |
| The database role of the node. | |
| bool | etlStarted |
| Whether the ETL monitor has started on this node. | |
| bool | cacheIsFull |
| Whether the ledger cache is fully loaded on this node. | |
| bool | cacheIsCurrentlyLoading |
| Whether this node is currently loading the ledger cache. | |
Static Public Attributes | |
| static constexpr char const * | kTIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ" |
| The format of the time to store in the database. | |
Represents a node in the cluster.
|
strong |
Database role of a node in the cluster.
Roles are used to coordinate which node writes to the database:
|
static |
Create a ClioNode from writer state and cache loading state.
| uuid | The UUID of the node |
| writerState | The writer state to determine the node's database role |
| cacheLoadingState | The cache loading state to determine if cache is being loaded |