14.1 sp402_component_states
This table contains the dynamic data associated with a Monitored Component i.e. the current state of the process being monitored, stored in a single row per Monitored Component.
This data is updated every time a Monitored Component changes state, so it will always show the last known state of the process. It can be read by the monitor when it starts to determine if the system was shutdown completely before the monitor stopped, or whether the monitor is being restarted into a running system.
Table Definition
Field | Type | Default | Nullable |
---|---|---|---|
component_no | number | ||
current_status | number | ||
current_process_id | number | ||
consecutive_starts | number |
Keys
primary key (component_no)
foreign key (component_no) references 14.1 sp400_components (component_no)
foreign key (current_status) references 14.1 sp404_component_status_decodes (state_no)
Column Descriptions
Field | Description |
---|---|
component_no | Component identifier. |
current_status | What the process is currently doing e.g. starting/initialising/stopping etc. |
current_process_id | PID of the process currently running for this component. |
consecutive_starts | Number of times this process has been started without reaching the ready state. |