|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Data consistency manager coordinating transaction managers and validators. More...
#include <data_consistency.h>

Public Member Functions | |
| data_consistency_manager (const std::string &name) | |
| common::VoidResult | add_transaction_manager (const std::string &name, const transaction_config &config) |
| transaction_manager * | get_transaction_manager (const std::string &name) |
| common::VoidResult | add_state_validator (const std::string &name, const validation_config &config) |
| state_validator * | get_state_validator (const std::string &name) |
| common::VoidResult | start_all_validators () |
| common::VoidResult | stop_all_validators () |
| common::Result< bool > | is_healthy () const |
| std::unordered_map< std::string, std::string > | get_all_metrics () const |
Private Attributes | |
| std::string | name_ |
| std::mutex | mutex_ |
| std::unordered_map< std::string, std::shared_ptr< transaction_manager > > | transaction_managers_ |
| std::unordered_map< std::string, std::shared_ptr< state_validator > > | state_validators_ |
Data consistency manager coordinating transaction managers and validators.
Definition at line 477 of file data_consistency.h.
|
inlineexplicit |
Definition at line 479 of file data_consistency.h.
|
inline |
Definition at line 507 of file data_consistency.h.
References kcenon::monitoring::already_exists, mutex_, and state_validators_.
Referenced by TEST_F(), TEST_F(), TEST_F(), and TEST_F().

|
inline |
Definition at line 482 of file data_consistency.h.
References kcenon::monitoring::already_exists, mutex_, and transaction_managers_.
Referenced by TEST_F(), TEST_F(), and TEST_F().

|
inline |
Definition at line 557 of file data_consistency.h.
References state_validators_, and transaction_managers_.
Referenced by TEST_F().

|
inline |
Definition at line 522 of file data_consistency.h.
References mutex_, and state_validators_.
Referenced by TEST_F().

|
inline |
Definition at line 497 of file data_consistency.h.
References mutex_, and transaction_managers_.
Referenced by TEST_F().

|
inline |
Definition at line 553 of file data_consistency.h.
Referenced by TEST_F().

|
inline |
Definition at line 532 of file data_consistency.h.
References mutex_, and state_validators_.
Referenced by TEST_F().

|
inline |
Definition at line 544 of file data_consistency.h.
References mutex_, and state_validators_.
Referenced by TEST_F().

|
private |
Definition at line 573 of file data_consistency.h.
Referenced by add_state_validator(), add_transaction_manager(), get_state_validator(), get_transaction_manager(), start_all_validators(), and stop_all_validators().
|
private |
Definition at line 572 of file data_consistency.h.
|
private |
Definition at line 575 of file data_consistency.h.
Referenced by add_state_validator(), get_all_metrics(), get_state_validator(), start_all_validators(), and stop_all_validators().
|
private |
Definition at line 574 of file data_consistency.h.
Referenced by add_transaction_manager(), get_all_metrics(), and get_transaction_manager().