OpenSDN source code
|
#include <config_amqp_client.h>
Classes | |
class | RabbitMQReader |
Public Types | |
typedef boost::asio::ip::tcp::endpoint | Endpoint |
Public Member Functions | |
ConfigAmqpClient (ConfigClientManager *mgr, std::string hostname, std::string module_name, const ConfigClientOptions &options) | |
virtual | ~ConfigAmqpClient () |
void | StartRabbitMQReader () |
std::string | rabbitmq_ip () const |
std::string | rabbitmq_port () const |
size_t | rabbitmq_server_list_len () const |
void | increment_rabbitmq_server_index () |
std::string | rabbitmq_user () const |
std::string | rabbitmq_password () const |
std::string | rabbitmq_vhost () const |
bool | rabbitmq_use_ssl () const |
std::string | rabbitmq_ssl_version () const |
std::string | rabbitmq_ssl_keyfile () const |
std::string | rabbitmq_ssl_certfile () const |
std::string | rabbitmq_ssl_ca_certs () const |
ConfigClientManager * | config_manager () const |
ConfigClientManager * | config_manager () |
std::vector< Endpoint > | endpoints () const |
int | reader_task_id () const |
std::string | hostname () const |
std::string | module_name () const |
std::string | FormAmqpUri (bool hide_auth_info) const |
void | EnqueueUUIDRequest (std::string oper, std::string obj_type, std::string uuid_str) |
bool | ProcessMessage (const std::string &json_message) |
void | set_connected (bool connected) |
void | GetConnectionInfo (ConfigAmqpConnInfo &info) const |
bool | terminate () const |
void | set_terminate (bool terminate) |
Static Public Member Functions | |
static void | set_disable (bool disable) |
Private Member Functions | |
void | ReportRabbitMQConnectionStatus (bool connected) const |
Private Attributes | |
ConfigClientManager * | mgr_ |
std::string | hostname_ |
std::string | module_name_ |
int | reader_task_id_ |
size_t | current_server_index_ |
bool | terminate_ |
std::vector< std::string > | rabbitmq_ips_ |
std::vector< std::string > | rabbitmq_ports_ |
std::string | rabbitmq_user_ |
std::string | rabbitmq_password_ |
std::string | rabbitmq_vhost_ |
bool | rabbitmq_use_ssl_ |
std::string | rabbitmq_ssl_version_ |
std::string | rabbitmq_ssl_keyfile_ |
std::string | rabbitmq_ssl_certfile_ |
std::string | rabbitmq_ssl_ca_certs_ |
std::vector< Endpoint > | endpoints_ |
tbb::atomic< bool > | connection_status_ |
tbb::atomic< uint64_t > | connection_status_change_at_ |
Static Private Attributes | |
static bool | disable_ |
Definition at line 87 of file config_amqp_client.h.
typedef boost::asio::ip::tcp::endpoint ConfigAmqpClient::Endpoint |
Definition at line 89 of file config_amqp_client.h.
ConfigAmqpClient::ConfigAmqpClient | ( | ConfigClientManager * | mgr, |
std::string | hostname, | ||
std::string | module_name, | ||
const ConfigClientOptions & | options | ||
) |
|
inlinevirtual |
Definition at line 92 of file config_amqp_client.h.
|
inline |
Definition at line 127 of file config_amqp_client.h.
|
inline |
Definition at line 128 of file config_amqp_client.h.
|
inline |
Definition at line 129 of file config_amqp_client.h.
void ConfigAmqpClient::EnqueueUUIDRequest | ( | std::string | oper, |
std::string | obj_type, | ||
std::string | uuid_str | ||
) |
string ConfigAmqpClient::FormAmqpUri | ( | bool | hide_auth_info | ) | const |
void ConfigAmqpClient::GetConnectionInfo | ( | ConfigAmqpConnInfo & | info | ) | const |
|
inline |
Definition at line 131 of file config_amqp_client.h.
|
inline |
Definition at line 112 of file config_amqp_client.h.
|
inline |
Definition at line 132 of file config_amqp_client.h.
bool ConfigAmqpClient::ProcessMessage | ( | const std::string & | json_message | ) |
|
inline |
Definition at line 96 of file config_amqp_client.h.
|
inline |
Definition at line 120 of file config_amqp_client.h.
|
inline |
Definition at line 102 of file config_amqp_client.h.
|
inline |
Definition at line 108 of file config_amqp_client.h.
|
inline |
Definition at line 126 of file config_amqp_client.h.
|
inline |
Definition at line 125 of file config_amqp_client.h.
|
inline |
Definition at line 124 of file config_amqp_client.h.
|
inline |
Definition at line 123 of file config_amqp_client.h.
|
inline |
Definition at line 122 of file config_amqp_client.h.
|
inline |
Definition at line 119 of file config_amqp_client.h.
|
inline |
Definition at line 121 of file config_amqp_client.h.
|
inline |
Definition at line 130 of file config_amqp_client.h.
|
private |
void ConfigAmqpClient::set_connected | ( | bool | connected | ) |
|
inlinestatic |
Definition at line 134 of file config_amqp_client.h.
|
inline |
void ConfigAmqpClient::StartRabbitMQReader | ( | ) |
|
inline |
Definition at line 143 of file config_amqp_client.h.
|
private |
Definition at line 171 of file config_amqp_client.h.
|
private |
Definition at line 172 of file config_amqp_client.h.
|
private |
Definition at line 157 of file config_amqp_client.h.
|
staticprivate |
Definition at line 169 of file config_amqp_client.h.
|
private |
Definition at line 170 of file config_amqp_client.h.
|
private |
Definition at line 153 of file config_amqp_client.h.
|
private |
Definition at line 152 of file config_amqp_client.h.
|
private |
Definition at line 154 of file config_amqp_client.h.
|
private |
Definition at line 159 of file config_amqp_client.h.
|
private |
Definition at line 162 of file config_amqp_client.h.
|
private |
Definition at line 160 of file config_amqp_client.h.
|
private |
Definition at line 168 of file config_amqp_client.h.
|
private |
Definition at line 167 of file config_amqp_client.h.
|
private |
Definition at line 166 of file config_amqp_client.h.
|
private |
Definition at line 165 of file config_amqp_client.h.
|
private |
Definition at line 164 of file config_amqp_client.h.
|
private |
Definition at line 161 of file config_amqp_client.h.
|
private |
Definition at line 163 of file config_amqp_client.h.
|
private |
Definition at line 156 of file config_amqp_client.h.
|
private |
Definition at line 158 of file config_amqp_client.h.