yumapro  20.10-10
YumaPro SDK
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...
 

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

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:

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

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

Here is the caller graph for this function:

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:

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

Here is the caller graph for this function:

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:

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:

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: