@Role public interface ExtensionJobHistorySerializer
ExtensionJobHistory
.Modifier and Type | Method and Description |
---|---|
void |
append(ExtensionJobHistoryRecord record,
File historyFile)
Appends the serialization of a given history record to a specified partial history file.
|
List<ExtensionJobHistoryRecord> |
clone(List<ExtensionJobHistoryRecord> records)
Clones a list of history records by serializing and deserializing it.
|
List<ExtensionJobHistoryRecord> |
deserialize(String serializedRecords)
Deserializes a list of history records.
|
List<ExtensionJobHistoryRecord> |
read(File historyFile)
Deserializes all the history records that have been serialized in the given file.
|
List<ExtensionJobHistoryRecord> |
read(Reader reader)
Deserializes a list of history records from a given reader.
|
String |
serialize(ExtensionJobHistoryRecord record)
Serializes a given history record.
|
void |
write(ExtensionJobHistoryRecord record,
Writer writer)
Serializes a given history record and passes the result to the given writer.
|
String serialize(ExtensionJobHistoryRecord record)
record
- the history record to serializevoid write(ExtensionJobHistoryRecord record, Writer writer)
record
- the history record to serializewriter
- where to write the serialized history recordvoid append(ExtensionJobHistoryRecord record, File historyFile) throws IOException
record
- the history record to serializehistoryFile
- the history file where to append the resultIOException
- if it fails to append the serialized history record to the specified fileList<ExtensionJobHistoryRecord> deserialize(String serializedRecords)
serializedRecords
- the string containing the serialized history recordsList<ExtensionJobHistoryRecord> read(Reader reader)
reader
- from where to read the history recordsList<ExtensionJobHistoryRecord> read(File historyFile) throws IOException
historyFile
- the history file containing the serialized history recordsIOException
- if it fails to read from the specified fileList<ExtensionJobHistoryRecord> clone(List<ExtensionJobHistoryRecord> records)
records
- the list of history records to cloneCopyright © 2004–2021 XWiki. All rights reserved.