enum ta_reboot_state

Overview

State of the reboot

+———- + +———- + +———- + | | (1) | | (2) | | | IDLE |->| LOG_FLUSH |->| WAITING |- + | | | | | | | +———- + +———- + +———- + | | +——————————————————- + | | +———- + +———- + | (3) | | (4) | | (5) +->| WAITING_ACK |->| REBOOTING |-> goto IDLE | | | | +———- + +———- +

(1),(2),(3),(4) - Event for switching to the next state

  • IDLE - The normal state of the agent

      • An user requested to reboot TA

  • LOG_FLUSH - RCF is waiting for a response (10 second) to the GET_LOG last command

      • RCF received an answer from the agent to the GET_LOG last command

  • WAITING - RCF is forming a request to reboot the TA and sending it

      • RCF sent a reboot request to TA

  • WAITING_ACK - RCF is waiting for confirmation (10 second) of receiving a reboot request from the TA

      • RCF received confirmation from the TA

  • REBOOTING - RCF is waiting for the reboot to finish using the specified timeout. More…

#include <rcf.h>

enum ta_reboot_state {
    TA_REBOOT_STATE_IDLE,
    TA_REBOOT_STATE_LOG_FLUSH,
    TA_REBOOT_STATE_WAITING,
    TA_REBOOT_STATE_WAITING_ACK,
    TA_REBOOT_STATE_REBOOTING,
};

Detailed Documentation

State of the reboot

+———- + +———- + +———- + | | (1) | | (2) | | | IDLE |->| LOG_FLUSH |->| WAITING |- + | | | | | | | +———- + +———- + +———- + | | +——————————————————- + | | +———- + +———- + | (3) | | (4) | | (5) +->| WAITING_ACK |->| REBOOTING |-> goto IDLE | | | | +———- + +———- +

(1),(2),(3),(4) - Event for switching to the next state

  • IDLE - The normal state of the agent

      • An user requested to reboot TA

  • LOG_FLUSH - RCF is waiting for a response (10 second) to the GET_LOG last command

      • RCF received an answer from the agent to the GET_LOG last command

  • WAITING - RCF is forming a request to reboot the TA and sending it

      • RCF sent a reboot request to TA

  • WAITING_ACK - RCF is waiting for confirmation (10 second) of receiving a reboot request from the TA

      • RCF received confirmation from the TA

  • REBOOTING - RCF is waiting for the reboot to finish using the specified timeout. If the waiting time has expired, the RCF marks the agent unrecoverable dead. Either switch to the next reboot type if it allowed

      • RCF is initializing the TA process

In case of TA process reboot, RCF goes from state LOG_FLUSH to (5) immediately.

Enum Values

TA_REBOOT_STATE_IDLE

The normal state of the agent

TA_REBOOT_STATE_LOG_FLUSH

Waiting for the log flush command

TA_REBOOT_STATE_WAITING

Send a reboot request to agent and wait for confirmation of sending

TA_REBOOT_STATE_WAITING_ACK

Wait for a response from the agent to the reboot command

TA_REBOOT_STATE_REBOOTING

Waiting for the end of the reboot