yumapro
24.10-3
YumaPro SDK
|
Supports yuma-system and yumaworks-system modules. More...
Functions | |
status_t | agt_sys_init (void) |
INIT 1: Initialize the server notification module data structures. More... | |
status_t | agt_sys_init2 (void) |
INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loaded. More... | |
void | agt_sys_cleanup (void) |
Cleanup the module data structures. More... | |
void | agt_sys_send_sysSessionStart (const ses_cb_t *scb) |
Queue the Session Start notification. More... | |
void | agt_sys_send_sysSessionEnd (const ses_cb_t *scb, ses_term_reason_t termreason, ses_id_t killedby) |
Queue the Session End notification. More... | |
void | agt_sys_send_sysConfigChange (const ses_cb_t *scb, dlq_hdr_t *auditrecQ) |
Queue the Config Change notification. More... | |
void | agt_sys_send_sysCapabilityChange (ses_cb_t *changed_by, boolean is_add, const xmlChar *capstr) |
Send a Capability Change notification. More... | |
void | agt_sys_send_sysConfirmedCommit (const ses_cb_t *scb, ncx_confirm_event_t event, uint32 timeout) |
Queue the Confirmed Commit notification. More... | |
uint32 | agt_sys_get_capability_changes (void) |
Get the capability-changes counter. More... | |
val_value_t * | agt_sys_get_system_node (void) |
Get the /yuma-system:system container. More... | |
status_t | agt_sys_fill_ha_status (val_value_t *ha_status_val) |
Fill the HA status container. More... | |
Supports yuma-system and yumaworks-system modules.
void agt_sys_cleanup | ( | void | ) |
Cleanup the module data structures.
Called by the server during shutdown.
status_t agt_sys_fill_ha_status | ( | val_value_t * | ha_status_val | ) |
Fill the HA status container.
<verbatim> +–ro ha-status +–ro ha-built? boolean +–ro ha-role-state? HaRoleState +–ro ha-enabled? boolean +–ro ha-sil-standby? boolean +–ro ha-server* string +–ro ha-server-key? string +–ro ha-initial-active? string +–ro socket-type? enumeration +–ro socket-port? inet:port-number +–ro server-id? yt:NcxName +–ro config-id? uint64 +–ro config-stamp? yang:date-and-time </verbatim>
ha_status_val | value node to fill in that uses HaStatusParms grouping |
status
uint32 agt_sys_get_capability_changes | ( | void | ) |
Get the capability-changes counter.
val_value_t * agt_sys_get_system_node | ( | void | ) |
Get the /yuma-system:system container.
Only available if –with-yuma-system=true
status_t agt_sys_init | ( | void | ) |
INIT 1: Initialize the server notification module data structures.
status_t agt_sys_init2 | ( | void | ) |
INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loaded.
void agt_sys_send_sysCapabilityChange | ( | ses_cb_t * | changed_by, |
boolean | is_add, | ||
const xmlChar * | capstr | ||
) |
Send a Capability Change notification.
Send a <sysCapabilityChange> event for a module being added
changed_by | session control block that made the change to add this module NULL if the server made the change |
is_add | TRUE if the capability is being added FALSE if the capability is being deleted |
capstr | capability string that was added or deleted |
void agt_sys_send_sysConfigChange | ( | const ses_cb_t * | scb, |
dlq_hdr_t * | auditrecQ | ||
) |
Queue the Config Change notification.
scb | session control block to use for payload values |
auditrecQ | Q of rpc_audit_rec_t structs to use for the notification payload contents |
void agt_sys_send_sysConfirmedCommit | ( | const ses_cb_t * | scb, |
ncx_confirm_event_t | event, | ||
uint32 | timeout | ||
) |
Queue the Confirmed Commit notification.
scb | session control block to use for payload values |
event | enum for the confirmEvent leaf |
timeout | number of seconds configured for CC time out |
void agt_sys_send_sysSessionEnd | ( | const ses_cb_t * | scb, |
ses_term_reason_t | termreason, | ||
ses_id_t | killedby | ||
) |
Queue the Session End notification.
scb | session control block to use for payload values |
termreason | enum for the terminationReason leaf |
killedby | session-id for killedBy leaf if termreason "killed" ignored otherwise |
void agt_sys_send_sysSessionStart | ( | const ses_cb_t * | scb | ) |
Queue the Session Start notification.
scb | session control block to use for payload values |