Class ReadOnlyStorageLog
java.lang.Object
fr.gouv.vitam.storage.engine.server.storagelog.ReadOnlyStorageLog
- All Implemented Interfaces:
VitamAutoCloseable
,StorageLog
,AutoCloseable
-
Constructor Summary
-
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.void
close()
getFileName
(boolean isWriteOperation) void
rotateLogFile
(Integer tenantId, boolean isWriteOperation) Rotate log file, and return previous log information
-
Constructor Details
-
ReadOnlyStorageLog
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceVitamAutoCloseable
-
appendWriteLog
Description copied from interface:StorageLog
Add a storage write operation log entry.- Specified by:
appendWriteLog
in interfaceStorageLog
parameters
- the entry parameters
-
appendAccessLog
Description copied from interface:StorageLog
Add a storage access operation log entry.- Specified by:
appendAccessLog
in interfaceStorageLog
parameters
- the entry parameters
-
rotateLogFile
Description copied from interface:StorageLog
Rotate log file, and return previous log information- Specified by:
rotateLogFile
in interfaceStorageLog
- Parameters:
tenantId
- tenant used for the rotation
-
initializeStorageLogs
public void initializeStorageLogs()- Specified by:
initializeStorageLogs
in interfaceStorageLog
-
getFileName
- Specified by:
getFileName
in interfaceStorageLog
-