Class ReadOnlyStorageLog
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.storagelog.ReadOnlyStorageLog
-
- All Implemented Interfaces:
VitamAutoCloseable
,StorageLog
,java.lang.AutoCloseable
public class ReadOnlyStorageLog extends java.lang.Object implements StorageLog
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyStorageLog(AlertService alertService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendAccessLog(java.lang.Integer tenant, AccessLogParameters parameters)
Add a storage access operation log entry.void
appendWriteLog(java.lang.Integer tenant, StorageLogbookParameters parameters)
Add a storage write operation log entry.void
close()
java.lang.String
getFileName(boolean isWriteOperation)
void
initializeStorageLogs()
java.util.List<LogInformation>
rotateLogFile(java.lang.Integer tenantId, boolean isWriteOperation)
Rotate log file, and return previous log information
-
-
-
Constructor Detail
-
ReadOnlyStorageLog
public ReadOnlyStorageLog(AlertService alertService)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVitamAutoCloseable
-
appendWriteLog
public void appendWriteLog(java.lang.Integer tenant, StorageLogbookParameters parameters)
Description copied from interface:StorageLog
Add a storage write operation log entry.- Specified by:
appendWriteLog
in interfaceStorageLog
parameters
- the entry parameters
-
appendAccessLog
public void appendAccessLog(java.lang.Integer tenant, AccessLogParameters parameters)
Description copied from interface:StorageLog
Add a storage access operation log entry.- Specified by:
appendAccessLog
in interfaceStorageLog
parameters
- the entry parameters
-
rotateLogFile
public java.util.List<LogInformation> rotateLogFile(java.lang.Integer tenantId, boolean isWriteOperation)
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
public java.lang.String getFileName(boolean isWriteOperation)
- Specified by:
getFileName
in interfaceStorageLog
-
-