yumapro  20.10-10
YumaPro SDK
YP-HA Standby Server

Handle Standby Server YP-HA role. More...

Collaboration diagram for YP-HA Standby Server:

Functions

status_t agt_yp_ha_standby_go (yp_ha_service_t *ha_serv)
 Go into YP-HA Standby server mode. More...
 
void agt_yp_ha_standby_stop (yp_ha_service_t *ha_serv)
 Exit YP-HA Standby server mode. More...
 
void agt_yp_ha_standby_init (yp_ha_service_t *ha_serv)
 Initialize the YP-HA Standby module. More...
 
status_t agt_yp_ha_standby_setup (yp_ha_service_t *ha_serv, const xmlChar *new_server_id)
 Setup the HA service standby_cb record for YP-HA Standby mode. More...
 
void agt_yp_ha_standby_cleanup (yp_ha_service_t *ha_serv)
 Cleanup the YP-HA Standby module. More...
 
void agt_yp_ha_standby_check_cleanup (yp_ha_service_t *ha_serv)
 Check if the cleanup of standby mode is needed. More...
 

Detailed Description

Handle Standby Server YP-HA role.

Connect to active server when directed to go-standby. This server receives and applies config updates from the active server.

Function Documentation

void agt_yp_ha_standby_check_cleanup ( yp_ha_service_t ha_serv)

Check if the cleanup of standby mode is needed.

Parameters
ha_servHA service control block to use

Here is the call graph for this function:

Here is the caller graph for this function:

void agt_yp_ha_standby_cleanup ( yp_ha_service_t ha_serv)

Cleanup the YP-HA Standby module.

Parameters
ha_servHA service control block to use

Here is the call graph for this function:

Here is the caller graph for this function:

status_t agt_yp_ha_standby_go ( yp_ha_service_t ha_serv)

Go into YP-HA Standby server mode.

Parameters
ha_servHA service control block to use
Returns
status of the operation

Here is the caller graph for this function:

void agt_yp_ha_standby_init ( yp_ha_service_t ha_serv)

Initialize the YP-HA Standby module.

Parameters
ha_servHA service control block to use

Here is the caller graph for this function:

status_t agt_yp_ha_standby_setup ( yp_ha_service_t ha_serv,
const xmlChar *  new_server_id 
)

Setup the HA service standby_cb record for YP-HA Standby mode.

Parameters
ha_servHA service control block to use
new_server_idname of active server to use
Returns
status NO_ERR if this server able to setup YP-HA Standby mode

Here is the call graph for this function:

Here is the caller graph for this function:

void agt_yp_ha_standby_stop ( yp_ha_service_t ha_serv)

Exit YP-HA Standby server mode.

Parameters
ha_servHA service control block to use

Here is the caller graph for this function: