#include <resdb_config.h>
Public Member Functions | |
| ResDBConfig (const std::vector< ReplicaInfo > &replicas, const ReplicaInfo &self_info, ResConfigData config_data=ResConfigData()) | |
| ResDBConfig (const std::vector< ReplicaInfo > &replicas, const ReplicaInfo &self_info, const KeyInfo &private_key, const CertificateInfo &public_key_cert_info) | |
| ResDBConfig (const ResConfigData &config_data, const ReplicaInfo &self_info, const KeyInfo &private_key, const CertificateInfo &public_key_cert_info) | |
| void | SetConfigData (const ResConfigData &config_data) |
| KeyInfo | GetPrivateKey () const |
| CertificateInfo | GetPublicKeyCertificateInfo () const |
| const std::vector< ReplicaInfo > & | GetReplicaInfos () const |
| ResConfigData | GetConfigData () const |
| const ReplicaInfo & | GetSelfInfo () const |
| size_t | GetReplicaNum () const |
| int | GetMinDataReceiveNum () const |
| size_t | GetMaxMaliciousReplicaNum () const |
| int | GetMinClientReceiveNum () const |
| int | GetMinCheckpointReceiveNum () const |
| void | SetClientTimeoutMs (int timeout_ms) |
| int | GetClientTimeoutMs () const |
| int | GetCheckPointWaterMark () const |
| void | SetCheckPointWaterMark (int water_mark) |
| std::string | GetCheckPointLoggingPath () const |
| void | SetCheckPointLoggingPath (const std::string &path) |
| void | EnableCheckPoint (bool is_enable) |
| bool | IsCheckPointEnabled () |
| bool | HeartBeatEnabled () |
| void | SetHeartBeatEnabled (bool enable_heartbeat) |
| bool | SignatureVerifierEnabled () |
| void | SetSignatureVerifierEnabled (bool enable_sv) |
| bool | IsPerformanceRunning () |
| void | RunningPerformance (bool) |
| bool | IsTestMode () const |
| void | SetTestMode (bool) |
| uint32_t | GetMaxProcessTxn () const |
| void | SetMaxProcessTxn (uint32_t num) |
| uint32_t | GetMaxClientComplaintNum () const |
| uint32_t | ClientBatchWaitTimeMS () const |
| void | SetClientBatchWaitTimeMS (uint32_t wait_time_ms) |
| uint32_t | ClientBatchNum () const |
| void | SetClientBatchNum (uint32_t num) |
| uint32_t | GetWorkerNum () const |
| uint32_t | GetInputWorkerNum () const |
| uint32_t | GetOutputWorkerNum () const |
| uint32_t | GetTcpBatchNum () const |
| uint32_t | GetViewchangeCommitTimeout () const |
| void | SetViewchangeCommitTimeout (uint64_t timeout_ms) |
Definition at line 28 of file resdb_config.h.
| resdb::ResDBConfig::ResDBConfig | ( | const std::vector< ReplicaInfo > & | replicas, |
| const ReplicaInfo & | self_info, | ||
| ResConfigData | config_data = ResConfigData() |
||
| ) |
Definition at line 26 of file resdb_config.cpp.
| resdb::ResDBConfig::ResDBConfig | ( | const std::vector< ReplicaInfo > & | replicas, |
| const ReplicaInfo & | self_info, | ||
| const KeyInfo & | private_key, | ||
| const CertificateInfo & | public_key_cert_info | ||
| ) |
Definition at line 33 of file resdb_config.cpp.
| resdb::ResDBConfig::ResDBConfig | ( | const ResConfigData & | config_data, |
| const ReplicaInfo & | self_info, | ||
| const KeyInfo & | private_key, | ||
| const CertificateInfo & | public_key_cert_info | ||
| ) |
Definition at line 42 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::ClientBatchNum | ( | ) | const |
Definition at line 221 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::ClientBatchWaitTimeMS | ( | ) | const |
Definition at line 213 of file resdb_config.cpp.
| void resdb::ResDBConfig::EnableCheckPoint | ( | bool | is_enable | ) |
Definition at line 159 of file resdb_config.cpp.
| std::string resdb::ResDBConfig::GetCheckPointLoggingPath | ( | ) | const |
Definition at line 143 of file resdb_config.cpp.
| int resdb::ResDBConfig::GetCheckPointWaterMark | ( | ) | const |
Definition at line 151 of file resdb_config.cpp.
| int resdb::ResDBConfig::GetClientTimeoutMs | ( | ) | const |
Definition at line 140 of file resdb_config.cpp.
| ResConfigData resdb::ResDBConfig::GetConfigData | ( | ) | const |
Definition at line 106 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetInputWorkerNum | ( | ) | const |
Definition at line 231 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetMaxClientComplaintNum | ( | ) | const |
Definition at line 206 of file resdb_config.cpp.
| size_t resdb::ResDBConfig::GetMaxMaliciousReplicaNum | ( | ) | const |
Definition at line 131 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetMaxProcessTxn | ( | ) | const |
Definition at line 194 of file resdb_config.cpp.
| int resdb::ResDBConfig::GetMinCheckpointReceiveNum | ( | ) | const |
Definition at line 126 of file resdb_config.cpp.
| int resdb::ResDBConfig::GetMinClientReceiveNum | ( | ) | const |
Definition at line 121 of file resdb_config.cpp.
| int resdb::ResDBConfig::GetMinDataReceiveNum | ( | ) | const |
Definition at line 116 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetOutputWorkerNum | ( | ) | const |
Definition at line 235 of file resdb_config.cpp.
| KeyInfo resdb::ResDBConfig::GetPrivateKey | ( | ) | const |
Definition at line 100 of file resdb_config.cpp.
| CertificateInfo resdb::ResDBConfig::GetPublicKeyCertificateInfo | ( | ) | const |
Definition at line 102 of file resdb_config.cpp.
| const std::vector< ReplicaInfo > & resdb::ResDBConfig::GetReplicaInfos | ( | ) | const |
Definition at line 108 of file resdb_config.cpp.
| size_t resdb::ResDBConfig::GetReplicaNum | ( | ) | const |
Definition at line 114 of file resdb_config.cpp.
| const ReplicaInfo & resdb::ResDBConfig::GetSelfInfo | ( | ) | const |
Definition at line 112 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetTcpBatchNum | ( | ) | const |
Definition at line 239 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetViewchangeCommitTimeout | ( | ) | const |
Definition at line 243 of file resdb_config.cpp.
| uint32_t resdb::ResDBConfig::GetWorkerNum | ( | ) | const |
Definition at line 229 of file resdb_config.cpp.
| bool resdb::ResDBConfig::HeartBeatEnabled | ( | ) |
Definition at line 165 of file resdb_config.cpp.
| bool resdb::ResDBConfig::IsCheckPointEnabled | ( | ) |
Definition at line 163 of file resdb_config.cpp.
| bool resdb::ResDBConfig::IsPerformanceRunning | ( | ) |
Definition at line 180 of file resdb_config.cpp.
| bool resdb::ResDBConfig::IsTestMode | ( | ) | const |
Definition at line 192 of file resdb_config.cpp.
| void resdb::ResDBConfig::RunningPerformance | ( | bool | is_performance_running | ) |
Definition at line 184 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetCheckPointLoggingPath | ( | const std::string & | path | ) |
Definition at line 147 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetCheckPointWaterMark | ( | int | water_mark | ) |
Definition at line 155 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetClientBatchNum | ( | uint32_t | num | ) |
Definition at line 225 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetClientBatchWaitTimeMS | ( | uint32_t | wait_time_ms | ) |
Definition at line 217 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetClientTimeoutMs | ( | int | timeout_ms | ) |
Definition at line 136 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetConfigData | ( | const ResConfigData & | config_data | ) |
Definition at line 81 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetHeartBeatEnabled | ( | bool | enable_heartbeat | ) |
Definition at line 167 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetMaxProcessTxn | ( | uint32_t | num | ) |
Definition at line 201 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetSignatureVerifierEnabled | ( | bool | enable_sv | ) |
Definition at line 175 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetTestMode | ( | bool | is_test_mode | ) |
Definition at line 188 of file resdb_config.cpp.
| void resdb::ResDBConfig::SetViewchangeCommitTimeout | ( | uint64_t | timeout_ms | ) |
Definition at line 249 of file resdb_config.cpp.
| bool resdb::ResDBConfig::SignatureVerifierEnabled | ( | ) |
Definition at line 171 of file resdb_config.cpp.