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 TypeMethodDescriptionvoid
appendAccessLog
(Integer tenant, AccessLogParameters parameters) Add a storage access operation log entry.void
appendWriteLog
(Integer tenant, StorageLogbookParameters parameters) Add a storage write operation log entry.getFileName
(boolean isWriteOperation) void
rotateLogFile
(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
-