Class Record
- java.lang.Object
-
- org.forgerock.openam.core.rest.record.Record
-
public class Record extends Object
Recording the OpenAM debug logs in a separate folder to investigate an issue.
-
-
Constructor Summary
Constructors Constructor Description Record(RecordProperties recordProperties, String folderPath)Create a RecordDebug instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.json.JsonValueexportJson()Export into json.StringgetFolderPath()Get the record folder pathRecordPropertiesgetRecordProperties()Get the record propertiesMap<Date,RecordStatus>getRecordsHistory()Get the history of the recordsRecordStatusgetRecordStatus()Get record statusvoidstartRecord()Start recordingvoidstopRecord()Stop recordingStringtoString()
-
-
-
Constructor Detail
-
Record
public Record(RecordProperties recordProperties, String folderPath)
Create a RecordDebug instance- Parameters:
recordProperties- the properties describing the recordfolderPath- the path of the folder where the record output is stored
-
-
Method Detail
-
getRecordProperties
public RecordProperties getRecordProperties()
Get the record properties- Returns:
- the record properties
-
getFolderPath
public String getFolderPath()
Get the record folder path- Returns:
- the record folder path
-
getRecordStatus
public RecordStatus getRecordStatus()
Get record status- Returns:
- the current record status
-
startRecord
public void startRecord()
Start recording
-
stopRecord
public void stopRecord()
Stop recording
-
getRecordsHistory
public Map<Date,RecordStatus> getRecordsHistory()
Get the history of the records- Returns:
- the history of the record statuses keyed by date
-
exportJson
public org.forgerock.json.JsonValue exportJson()
Export into json.- Returns:
- the JSON representation of this record
-
-