Class StorageLogAdministration
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.storagelog.StorageLogAdministration
-
public class StorageLogAdministration extends java.lang.Object
Business class for Storage Log Administration (backup)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STORAGE_ACCESS_BACKUP
static java.lang.String
STORAGE_WRITE_BACKUP
-
Constructor Summary
Constructors Constructor Description StorageLogAdministration(StorageLog storageLogService, int storageLogBackupThreadPoolSize)
-
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
-
-
-
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
- strategyIdbackupWriteLog
- backupWriteLogtenants
- tenant list to backup- Returns:
- backup result list
- Throws:
StorageLogException
- if storage log backup failed
-
-