public class StorageLogAdministration extends Object
| Constructor and Description |
|---|
StorageLogAdministration(StorageLog storageLogService) |
| Modifier and Type | Method and Description |
|---|---|
void |
backupStorageLog(String strategyId,
Boolean backupWriteLog,
GUID eip)
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 |
public StorageLogAdministration(StorageLog storageLogService)
public void backupStorageLog(String strategyId, Boolean backupWriteLog, GUID eip) throws IOException, StorageLogException, LogbookClientBadRequestException, LogbookClientAlreadyExistsException, LogbookClientServerException
strategyId - strategyIdbackupWriteLog - backupWriteLogIOException - if an IOException is thrown while generating the secure storageStorageLogException - if a LogZipFile cannot be generatedLogbookClientBadRequestException - if a bad request is encounteredLogbookClientAlreadyExistsException - if the logbook already existsLogbookClientServerException - if there's a problem connecting to the logbook functionnalityCopyright © 2019 Vitam. All rights reserved.