The Storage module implements a state machine with the following states and transitions:
- RUNNING (parent): Initializes backend, handles admin commands (
STORAGE_CLEAR,STORAGE_FLUSH,STORAGE_STATS,STORAGE_SET_THRESHOLD) - STATE_BUFFER_IDLE: Storing incoming data, waiting for commands. Transitions to
STATE_BUFFER_PIPE_ACTIVEonSTORAGE_BATCH_REQUEST. - STATE_BUFFER_PIPE_ACTIVE: Actively serving batch data through the batch interface. Transitions back to
STATE_BUFFER_IDLEwhen batch session ends.