Coverage Collection Event Flow
#
Details#
PreconditionAn Agent has established a connection with the Drill Admin and Agent has been registered.
#
Flow- User executes HTTP request to start a session.
- Admin does an action StartNewSession.
- Admin's plugin part starts the session on its side and sends StartAgentSession to the agent's plugin part.
- Probes collection is started. Agent's plugin part responds SessionStarted to admin's plugin part.
- Agent's plugin part collect ExecClassData and sends СoverDataPart in chunks max. 65535 objects every 2 seconds to the admin's plugin part.
Probes are sent only for the affected classes
- If the started session has real-time enabled:
- agent's plugin part sends SessionChanged to the admin's plugin part.
- admin's plugin part recalculates coverage.
- User executes HTTP request to stop session.
- Admin does an action StopSession.
- Admin's plugin part sends StopAgentSession to agent's plugin part.
- Repetition of the 5th point and finishes collecting probes.
- Agent's plugin part sends SessionsFinished to admin's plugin part.
- Admin's plugin part recalculates coverage and finishes session on its side.
#
Sequence Diagram#
Exception (Step 8)If CancelSession is received instead of StopSession flow is changed:
- Admin's plugin part cancels session on its side and sends CancelAgentSession to agent's plugin part.
- Probes collection is finished. Agent's plugin part responds SessionCancelled to admin's plugin part.