public class StorageLogServiceImpl extends Object implements StorageLogService
Modifier and Type | Field and Description |
---|---|
static String |
STORAGE_LOG_DIR |
Constructor and Description |
---|
StorageLogServiceImpl(List<Integer> tenants,
Path basePath) |
Modifier and Type | Method and Description |
---|---|
void |
append(Integer tenant,
StorageLogbookParameters parameters)
Add a storage log entry.
|
void |
close() |
List<LogInformation> |
rotateLogFile(Integer tenant)
Rotate log file, and return previous log information
|
public static final String STORAGE_LOG_DIR
public StorageLogServiceImpl(List<Integer> tenants, Path basePath) throws IOException
IOException
public void append(Integer tenant, StorageLogbookParameters parameters) throws IOException
StorageLogService
append
in interface StorageLogService
parameters
- the entry parametersIOException
- if an error is encounteredpublic List<LogInformation> rotateLogFile(Integer tenant) throws IOException
StorageLogService
rotateLogFile
in interface StorageLogService
IOException
public void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2018 Vitam. All rights reserved.