Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

axlJobIntfcHealthMethod

axlJobIntfcHealthMethod(
g_inst
S_currentHealth
)
=> S_newHealth

Description

Job Interface member function used to return the current health of the job. The application calls this function regularly (currently, every 5 seconds) on each job in order to recognize health changes. The available health types are: unknown, alive, or dead.

Arguments

g_inst

Subclass of axlJobIntfc

S_currentHealth

The current health type of the job.

The valid values are unknown, alive, or dead.

Value Returned

S_newHealth

The health type of the job is returned.

Examples

Returns the health type of the job.

;; example setup
(defclass IPCJob ( axlJobIntfc )
    (
     (ipcHandle)
     ))
;; health method
(defmethod axlJobIntfcHealthMethod ( (inst IPCJob) current_health )
    (cond
     ((and (current_health == "unknown")
        (null (zerop (ipcGetExitStatus
inst->ipcHandle))))      "dead")
((and (current_health == "alive")
(null (ipcIsAliveProcess
inst->ipcHandle)))      "dead")
(t
current_health)))

Return to top
 ⠀
X