yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
YP-HA Active Server

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

Collaboration diagram for YP-HA Active Server:

Functions

status_t agt_yp_ha_active_setup (yp_ha_service_t *ha_serv)
 One time pre-init YP-HA Active mode. More...
 
status_t agt_yp_ha_active_go (yp_ha_service_t *ha_serv)
 Go into YP-HA Active server mode. More...
 
void agt_yp_ha_active_stop (yp_ha_service_t *ha_serv)
 Exit from YP-HA Active server mode. More...
 
void agt_yp_ha_active_init (yp_ha_service_t *ha_serv)
 Initialize the YP-HA Active module. More...
 
void agt_yp_ha_active_cleanup (yp_ha_service_t *ha_serv)
 Cleanup the YP-HA Active module. More...
 
void agt_yp_ha_active_cleanup_server (yp_ha_service_t *ha_serv, yp_ha_server_t *ha_server)
 Cleanup the YP-HA Active Server subsystem record. More...
 
status_t agt_yp_ha_active_config_update (yp_ha_service_t *ha_serv, rpc_msg_t *msg, agt_cfg_transaction_t *txcb)
 Do a config update in the active role. More...
 
status_t agt_yp_ha_active_nvstore (yp_ha_service_t *ha_serv)
 Do an <nvstore> command to the standby servers. More...
 
void agt_yp_ha_active_mod_event (yp_ha_service_t *ha_serv, const xmlChar *name, const xmlChar *revision, val_value_t *inputval, boolean is_module, boolean is_load)
 Generate a module event. More...
 
status_t agt_yp_ha_active_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...
 

Detailed Description

Handle Active Server YP-HA role.

Standby servers connect to this server as a subsystem. This server sends config updates to each standby.

Function Documentation

◆ agt_yp_ha_active_cleanup()

void agt_yp_ha_active_cleanup ( yp_ha_service_t ha_serv)

Cleanup the YP-HA Active module.

Parameters
ha_servHA service control block to use
Here is the caller graph for this function:

◆ agt_yp_ha_active_cleanup_server()

void agt_yp_ha_active_cleanup_server ( yp_ha_service_t ha_serv,
yp_ha_server_t ha_server 
)

Cleanup the YP-HA Active Server subsystem record.

Parameters
ha_servHA service control block to use
ha_serverHA server control block to cleanup

◆ agt_yp_ha_active_config_update()

status_t agt_yp_ha_active_config_update ( yp_ha_service_t ha_serv,
rpc_msg_t msg,
agt_cfg_transaction_t txcb 
)

Do a config update in the active role.

Parameters
ha_servHA service control block to use
msgRPC message to use for update
txcbtransaction control block to get details for update
Returns
status
Here is the caller graph for this function:

◆ agt_yp_ha_active_get_config_info()

status_t agt_yp_ha_active_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_active_go()

status_t agt_yp_ha_active_go ( yp_ha_service_t ha_serv)

Go into YP-HA Active 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_active_init()

void agt_yp_ha_active_init ( yp_ha_service_t ha_serv)

Initialize the YP-HA Active module.

Parameters
ha_servHA service control block to use
Here is the caller graph for this function:

◆ agt_yp_ha_active_mod_event()

void agt_yp_ha_active_mod_event ( yp_ha_service_t ha_serv,
const xmlChar *  name,
const xmlChar *  revision,
val_value_t inputval,
boolean  is_module,
boolean  is_load 
)

Generate a module event.

Notify the standby of a new module loaded into the server

Parameters
ha_servHA service control block to use
namemodule or bundle name
revisionmodule or bundle revision version
inputvalparent of any <deviation> parameters
is_moduleTRUE for module; FALSE for bundle
is_loadTRUE for laod; FALSE for unload
Here is the caller graph for this function:

◆ agt_yp_ha_active_nvstore()

status_t agt_yp_ha_active_nvstore ( yp_ha_service_t ha_serv)

Do an <nvstore> command to the standby servers.

Parameters
ha_servHA service control block to use
Returns
status
Here is the caller graph for this function:

◆ agt_yp_ha_active_setup()

status_t agt_yp_ha_active_setup ( yp_ha_service_t ha_serv)

One time pre-init YP-HA Active mode.

Parameters
ha_servHA service control block 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:

◆ agt_yp_ha_active_stop()

void agt_yp_ha_active_stop ( yp_ha_service_t ha_serv)

Exit from YP-HA Active server mode.

Parameters
ha_servHA service control block to use
Here is the call graph for this function:
Here is the caller graph for this function: