public interface StorageLog extends VitamAutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
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.
|
String |
getFileName(boolean isWriteOperation) |
void |
initializeStorageLogs(Path basePath) |
List<LogInformation> |
rotateLogFile(Integer tenantId,
boolean isWriteOperation)
Rotate log file, and return previous log information
|
close
void appendWriteLog(Integer tenant, StorageLogbookParameters parameters) throws IOException
parameters
- the entry parametersIOException
- if an error is encounteredvoid appendAccessLog(Integer tenant, AccessLogParameters parameters) throws IOException
parameters
- the entry parametersIOException
- if an error is encounteredList<LogInformation> rotateLogFile(Integer tenantId, boolean isWriteOperation) throws IOException
tenantId
- tenant used for the rotationisWriteOperation
- IOException
void initializeStorageLogs(Path basePath) throws IOException
IOException
String getFileName(boolean isWriteOperation)
Copyright © 2018 Vitam. All rights reserved.