Class StorageLogService
java.lang.Object
fr.gouv.vitam.storage.engine.server.storagelog.StorageLogService
- All Implemented Interfaces:
VitamAutoCloseable,StorageLog,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.voidclose()getFileName(boolean isWriteOperation) voidrotateLogFile(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:StorageLogAdd a storage write operation log entry.- Specified by:
appendWriteLogin interfaceStorageLogparameters- the entry parameters- Throws:
IOException- if an error is encountered
-
appendAccessLog
Description copied from interface:StorageLogAdd a storage access operation log entry.- Specified by:
appendAccessLogin interfaceStorageLogparameters- 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:StorageLogRotate log file, and return previous log information- Specified by:
rotateLogFilein interfaceStorageLog- Parameters:
tenant- tenant used for the rotation- Throws:
IOException
-
initializeStorageLogs
- Specified by:
initializeStorageLogsin interfaceStorageLog- Throws:
IOException
-
getFileName
- Specified by:
getFileNamein interfaceStorageLog
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceVitamAutoCloseable
-