Class 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.
    • Constructor Detail

      • DefaultDebugRecorder

        @Inject
        public DefaultDebugRecorder​(AMExecutorServiceFactory executorServiceFactory)
        Initialize the RecordDebugController.
    • Method Detail

      • startRecording

        public void startRecording​(org.forgerock.json.JsonValue jsonProperties)
                            throws RecordException
        Start recording an issue
        Specified by:
        startRecording in interface DebugRecorder
        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: DebugRecorder
        Get the current record if exist
        Specified by:
        getCurrentRecord in interface DebugRecorder
        Returns:
        the current record or null if we are not recording