#include "monitube-data_rtp.h"
Go to the source code of this file.
Data Structures | |
struct | replication_data_s |
struct | delete_replication_data_s |
Defines | |
#define | MAX_MON_NAME_LEN 256 |
Application name length. | |
Typedefs | |
typedef replication_data_s | replication_data_t |
typedef delete_replication_data_s | delete_replication_data_t |
Functions | |
status_t | init_replication (in_addr_t master_address, evContext ev_ctx) |
void | update_replication_entry (replication_data_t *data) |
void | delete_replication_entry (delete_replication_data_t *data) |
void | stop_replication (void) |
These functions will manage the flow state replication for a master/slave data component.
Definition in file monitube-data_ha.h.
typedef struct delete_replication_data_s delete_replication_data_t |
Replication data of flow state to delete in backup/slave
typedef struct replication_data_s replication_data_t |
Replication data of flow state to send to backup/slave for its flow table
void delete_replication_entry | ( | delete_replication_data_t * | data | ) |
Pass replication data to delete to the slave
[in] | data | The data to replicate to the slave |
Definition at line 426 of file monitube-data_ha.c.
References INSIST_ERR, and LOG.
status_t init_replication | ( | in_addr_t | master_address, | |
evContext | ev_ctx | |||
) |
Init the data structures that will store configuration info
[in] | master_address | Address of master, or 0 if this is the master |
[in] | ev_ctx | main event context |
Definition at line 305 of file monitube-data_ha.c.
References LOG.
void stop_replication | ( | void | ) |
Stop and shutdown all the replication subsystem
Definition at line 457 of file monitube-data_ha.c.
void update_replication_entry | ( | replication_data_t * | data | ) |
Pass replication data to add or update to the slave
[in] | data | The data to replicate to the slave |
Definition at line 393 of file monitube-data_ha.c.
References INSIST_ERR, and LOG.