Class ReadOnlyStorageLog

    • Constructor Detail

      • ReadOnlyStorageLog

        public ReadOnlyStorageLog​(AlertService alertService)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface VitamAutoCloseable
      • 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 interface StorageLog
        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 interface StorageLog
        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 interface StorageLog
        Parameters:
        tenantId - tenant used for the rotation
      • getFileName

        public java.lang.String getFileName​(boolean isWriteOperation)
        Specified by:
        getFileName in interface StorageLog