monitube-data_ha.h File Reference

High Availability module. More...

#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)


Detailed Description

High Availability module.

These functions will manage the flow state replication for a master/slave data component.

Definition in file monitube-data_ha.h.


Typedef Documentation

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


Function Documentation

void delete_replication_entry ( delete_replication_data_t data  ) 

Pass replication data to delete to the slave

Parameters:
[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

Parameters:
[in] master_address Address of master, or 0 if this is the master
[in] ev_ctx main event context
Returns:
SUCCESS if successful; otherwise EFAIL with an error message.

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

Parameters:
[in] data The data to replicate to the slave

Definition at line 393 of file monitube-data_ha.c.

References INSIST_ERR, and LOG.


© 2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:02 2010 for SDK Your Net Corporation Monitube IPTV Monitoring Example: monitube-data 1.0 by Doxygen 1.5.1