Handle Active Server YP-HA role.
More...
|
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...
|
|
Handle Active Server YP-HA role.
Standby servers connect to this server as a subsystem. This server sends config updates to each standby.
◆ agt_yp_ha_active_cleanup()
Cleanup the YP-HA Active module.
- Parameters
-
ha_serv | HA service control block to use |
◆ agt_yp_ha_active_cleanup_server()
Cleanup the YP-HA Active Server subsystem record.
- Parameters
-
ha_serv | HA service control block to use |
ha_server | HA server control block to cleanup |
◆ agt_yp_ha_active_config_update()
Do a config update in the active role.
- Parameters
-
ha_serv | HA service control block to use |
msg | RPC message to use for update |
txcb | transaction control block to get details for update |
- Returns
- status
◆ agt_yp_ha_active_get_config_info()
Get the config ID and timestamp info.
- Parameters
-
| ha_serv | HA service control block to use |
[out] | config_id | address of return config-id
*config_id return config-id |
[out] | config_stamp | address of return config-stamp
*config_stamp return config-stamp |
- Returns
- status
◆ agt_yp_ha_active_go()
Go into YP-HA Active server mode.
- Parameters
-
ha_serv | HA service control block to use |
- Returns
- status of the operation
◆ agt_yp_ha_active_init()
Initialize the YP-HA Active module.
- Parameters
-
ha_serv | HA service control block to use |
◆ 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_serv | HA service control block to use |
name | module or bundle name |
revision | module or bundle revision version |
inputval | parent of any <deviation> parameters |
is_module | TRUE for module; FALSE for bundle |
is_load | TRUE for laod; FALSE for unload |
◆ agt_yp_ha_active_nvstore()
Do an <nvstore> command to the standby servers.
- Parameters
-
ha_serv | HA service control block to use |
- Returns
- status
◆ agt_yp_ha_active_setup()
One time pre-init YP-HA Active mode.
- Parameters
-
ha_serv | HA service control block to use |
- Returns
- status NO_ERR if this server able to setup YP-HA Standby mode
◆ agt_yp_ha_active_stop()
Exit from YP-HA Active server mode.
- Parameters
-
ha_serv | HA service control block to use |