Class StorageLogAdministration


  • public class StorageLogAdministration
    extends java.lang.Object
    Business class for Storage Log Administration (backup)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<StorageLogBackupResult> backupStorageLog​(java.lang.String strategyId, java.lang.Boolean backupWriteLog, java.util.List<java.lang.Integer> tenants)
      backup the log files since last backup:
      * Link the appender to a new file in order to continue to log access/write during the operation
      * Copy previous log files from Storage to Offers
      * Delete old files from Storage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STORAGE_WRITE_BACKUP

        public static final java.lang.String STORAGE_WRITE_BACKUP
        See Also:
        Constant Field Values
      • STORAGE_ACCESS_BACKUP

        public static final java.lang.String STORAGE_ACCESS_BACKUP
        See Also:
        Constant Field Values
    • Constructor Detail

      • StorageLogAdministration

        public StorageLogAdministration​(StorageLog storageLogService,
                                        int storageLogBackupThreadPoolSize)
    • Method Detail

      • backupStorageLog

        public java.util.List<StorageLogBackupResult> backupStorageLog​(java.lang.String strategyId,
                                                                       java.lang.Boolean backupWriteLog,
                                                                       java.util.List<java.lang.Integer> tenants)
                                                                throws StorageLogException
        backup the log files since last backup:
        * Link the appender to a new file in order to continue to log access/write during the operation
        * Copy previous log files from Storage to Offers
        * Delete old files from Storage
        Parameters:
        strategyId - strategyId
        backupWriteLog - backupWriteLog
        tenants - tenant list to backup
        Returns:
        backup result list
        Throws:
        StorageLogException - if storage log backup failed