public class FileStoreLogFactory extends Object implements LogFactory
RawLogs in the source publications or publication images directories as appropriate.| Constructor and Description |
|---|
FileStoreLogFactory(String dataDirectoryName,
int filePageSize,
boolean checkStorage,
long lowStorageWarningThreshold,
ErrorHandler errorHandler)
Construct a
LogFactory over a file store. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RawLog |
newImage(long correlationId,
int termBufferLength,
boolean useSparseFiles)
Create new
RawLog in the rebuilt publication images directory for the supplied triplet. |
RawLog |
newPublication(long correlationId,
int termBufferLength,
boolean useSparseFiles)
Create new
RawLog in the publications directory for the supplied triplet. |
public FileStoreLogFactory(String dataDirectoryName, int filePageSize, boolean checkStorage, long lowStorageWarningThreshold, ErrorHandler errorHandler)
LogFactory over a file store.dataDirectoryName - where the log buffers will be created.filePageSize - of the filesystem.checkStorage - for sufficient space before allocating files.lowStorageWarningThreshold - when warnings about remaining space will begin.errorHandler - to call when an error is encountered.public void close()
close in interface AutoCloseablepublic RawLog newPublication(long correlationId, int termBufferLength, boolean useSparseFiles)
RawLog in the publications directory for the supplied triplet.newPublication in interface LogFactorycorrelationId - to use to distinguish this publicationtermBufferLength - length of each termuseSparseFiles - for the log buffer.RawLogpublic RawLog newImage(long correlationId, int termBufferLength, boolean useSparseFiles)
RawLog in the rebuilt publication images directory for the supplied triplet.newImage in interface LogFactorycorrelationId - to use to distinguish this connectiontermBufferLength - to use for the log bufferuseSparseFiles - for the log buffer.RawLogCopyright © 2014-2020 Real Logic Limited. All Rights Reserved.