Interface StorageLog
- All Superinterfaces:
AutoCloseable,VitamAutoCloseable
- All Known Implementing Classes:
ReadOnlyStorageLog,StorageLogService
Storage log provider. It describes methods to be implemented.
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendAccessLog(Integer tenant, AccessLogParameters parameters) Add a storage access operation log entry.voidappendWriteLog(Integer tenant, StorageLogbookParameters parameters) Add a storage write operation log entry.getFileName(boolean isWriteOperation) voidrotateLogFile(Integer tenantId, boolean isWriteOperation) Rotate log file, and return previous log informationMethods inherited from interface fr.gouv.vitam.common.model.VitamAutoCloseable
close
-
Method Details
-
appendWriteLog
Add a storage write operation log entry.- Parameters:
parameters- the entry parameters- Throws:
IOException- if an error is encountered
-
appendAccessLog
Add a storage access operation log entry.- Parameters:
parameters- the entry parameters- Throws:
IOException- if an error is encountered
-
rotateLogFile
Rotate log file, and return previous log information- Parameters:
tenantId- tenant used for the rotationisWriteOperation-- Throws:
IOException
-
initializeStorageLogs
- Throws:
IOException
-
getFileName
-