Class DefaultDebugRecorder
- java.lang.Object
-
- org.forgerock.openam.core.rest.record.DefaultDebugRecorder
-
- All Implemented Interfaces:
DebugRecorder
@Singleton public class DefaultDebugRecorder extends Object implements DebugRecorder
Manage the records. Implement 3 actions: Start: Start recording OpenAM. Status: Get the status of the current recording Stop: Stop the current recording if exist. Note that you can't have two records at the same time, even if it is not running.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDefaultDebugRecorder.AutoStopFileSizeRecordprotected classDefaultDebugRecorder.ThreadsDumpRunnable
-
Constructor Summary
Constructors Constructor Description DefaultDebugRecorder(AMExecutorServiceFactory executorServiceFactory)Initialize the RecordDebugController.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordgetCurrentRecord()Get the current record if existvoidstartRecording(org.forgerock.json.JsonValue jsonProperties)Start recording an issueRecordstopRecording()Stop recording the current issue.
-
-
-
Constructor Detail
-
DefaultDebugRecorder
@Inject public DefaultDebugRecorder(AMExecutorServiceFactory executorServiceFactory)
Initialize the RecordDebugController.
-
-
Method Detail
-
startRecording
public void startRecording(org.forgerock.json.JsonValue jsonProperties) throws RecordExceptionStart recording an issue- Specified by:
startRecordingin interfaceDebugRecorder- Parameters:
jsonProperties- the JSON properties describing the recording to start- Throws:
RecordException- throw a RecordException if the issueID doesn't exist
-
getCurrentRecord
public Record getCurrentRecord()
Description copied from interface:DebugRecorderGet the current record if exist- Specified by:
getCurrentRecordin interfaceDebugRecorder- Returns:
- the current record or null if we are not recording
-
stopRecording
public Record stopRecording() throws RecordException
Stop recording the current issue.- Specified by:
stopRecordingin interfaceDebugRecorder- Returns:
- the stopped record or null if we are not recording
- Throws:
RecordException- if an error occurs while stopping the recording
-
-