Interface StorageLog

All Superinterfaces:
AutoCloseable, VitamAutoCloseable
All Known Implementing Classes:
ReadOnlyStorageLog, StorageLogService

public interface StorageLog extends VitamAutoCloseable
Storage log provider. It describes methods to be implemented.
  • Method Details

    • appendWriteLog

      void appendWriteLog(Integer tenant, StorageLogbookParameters parameters) throws IOException
      Add a storage write operation log entry.
      Parameters:
      parameters - the entry parameters
      Throws:
      IOException - if an error is encountered
    • appendAccessLog

      void appendAccessLog(Integer tenant, AccessLogParameters parameters) throws IOException
      Add a storage access operation log entry.
      Parameters:
      parameters - the entry parameters
      Throws:
      IOException - if an error is encountered
    • rotateLogFile

      List<LogInformation> rotateLogFile(Integer tenantId, boolean isWriteOperation) throws IOException
      Rotate log file, and return previous log information
      Parameters:
      tenantId - tenant used for the rotation
      isWriteOperation -
      Throws:
      IOException
    • initializeStorageLogs

      void initializeStorageLogs() throws IOException
      Throws:
      IOException
    • getFileName

      String getFileName(boolean isWriteOperation)