yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
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...
 
status_t agt_yp_ha_standby_get_config_info (yp_ha_service_t *ha_serv, ncx_transaction_id_t *config_id, const xmlChar **config_stamp)
 Get the config ID and timestamp info. More...
 
const xmlChar * agt_yp_ha_standby_get_active_server (yp_ha_service_t *ha_serv)
 Get the active server or in progress of connecting. 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

◆ agt_yp_ha_standby_check_cleanup()

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:

◆ agt_yp_ha_standby_cleanup()

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:

◆ agt_yp_ha_standby_get_active_server()

const xmlChar * agt_yp_ha_standby_get_active_server ( yp_ha_service_t ha_serv)

Get the active server or in progress of connecting.

Parameters
ha_servHA service control block to use
Returns
active-server or NULL if not available or not applicable
Here is the caller graph for this function:

◆ agt_yp_ha_standby_get_config_info()

status_t agt_yp_ha_standby_get_config_info ( yp_ha_service_t ha_serv,
ncx_transaction_id_t config_id,
const xmlChar **  config_stamp 
)

Get the config ID and timestamp info.

Parameters
ha_servHA service control block to use
[out]config_idaddress of return config-id
*config_id return config-id
[out]config_stampaddress of return config-stamp *config_stamp return config-stamp
Returns
status
Here is the caller graph for this function:

◆ agt_yp_ha_standby_go()

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:

◆ agt_yp_ha_standby_init()

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:

◆ agt_yp_ha_standby_setup()

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 caller graph for this function:

◆ agt_yp_ha_standby_stop()

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: