Package fr.bl.drit.flow.agent
Class ThreadLocalRecorder
java.lang.Object
fr.bl.drit.flow.agent.ThreadLocalRecorder
- All Implemented Interfaces:
Recorder,Closeable,AutoCloseable
A recorder that orchestrates per-thread recorders.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadLocalRecorder
- Parameters:
factory- Responsible for creatingThreadRecordersoutputDir- Path to the output directory
-
-
Method Details
-
enter
Description copied from interface:RecorderEmit a method enter event with the given method ID.- Specified by:
enterin interfaceRecorder- Parameters:
methodId- The ID of the method to trace- Throws:
IOException- If an I/O error occurs when emitting the event.
-
exit
Description copied from interface:RecorderEmit a method exit event.- Specified by:
exitin interfaceRecorder- Throws:
IOException- If an I/O error occurs when emitting the event.
-
close
Flush and close all per-thread streams at shutdown.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-