Class StorageLogService
java.lang.Object
fr.gouv.vitam.storage.engine.server.storagelog.StorageLogService
- All Implemented Interfaces:
VitamAutoCloseable
,StorageLog
,AutoCloseable
-
Field Summary
-
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 tenant, boolean isWriteOperation) Rotate log file, and return previous log information
-
Field Details
-
WRITE_LOG_DIR
- See Also:
-
ACCESS_LOG_DIR
- See Also:
-
-
Constructor Details
-
StorageLogService
Constructor.- Parameters:
tenants
-basePath
-- Throws:
IOException
-
-
Method Details
-
appendWriteLog
Description copied from interface:StorageLog
Add a storage write operation log entry.- Specified by:
appendWriteLog
in interfaceStorageLog
parameters
- the entry parameters- Throws:
IOException
- if an error is encountered
-
appendAccessLog
Description copied from interface:StorageLog
Add a storage access operation log entry.- Specified by:
appendAccessLog
in interfaceStorageLog
parameters
- the entry parameters- Throws:
IOException
- if an error is encountered
-
rotateLogFile
public List<LogInformation> rotateLogFile(Integer tenant, boolean isWriteOperation) throws IOException Description copied from interface:StorageLog
Rotate log file, and return previous log information- Specified by:
rotateLogFile
in interfaceStorageLog
- Parameters:
tenant
- tenant used for the rotation- Throws:
IOException
-
initializeStorageLogs
- Specified by:
initializeStorageLogs
in interfaceStorageLog
- Throws:
IOException
-
getFileName
- Specified by:
getFileName
in interfaceStorageLog
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceVitamAutoCloseable
-