RGM 将调用 Update 方法通知运行资源其特性已被更改。 唯一可以为 xfnts 数据服务更改的特性与故障监视器有关, 因此,每当更新特性时,xfnts_update 方法都将调用 scds_pmf_restart_fm() 来重启该故障监视器。
* check if the Fault monitor is already running and if so stop * and restart it. The second parameter to scds_pmf_restart_fm() * uniquely identifies the instance of the fault monitor that needs * to be restarted. */ scds_syslog(LOG_INFO, "Restarting the fault monitor."); result = scds_pmf_restart_fm(scds_handle, 0); if (result != SCHA_ERR_NOERR) { scds_syslog(LOG_ERR, "Failed to restart fault monitor."); /* Free up all the memory allocated by scds_initialize */ scds_close(&scds_handle); return (1); } scds_syslog(LOG_INFO, "Completed successfully.");
如果存在多个实例,scds_pmf_restart_fm() 的第二个参数将唯一标识要重启的故障监视器的实例。 样例中的值 0 表明该故障监视器只有一个实例。