public class ReadOnlyJournal extends Journal
Journal.DataFileRemovedListener, Journal.PreallocationScope, Journal.PreallocationStrategy, Journal.WriteCommand, Journal.WriteKeyaccessorPool, appender, archiveDataLogs, BATCH_CONTROL_RECORD_HEADER, BATCH_CONTROL_RECORD_MAGIC, BATCH_CONTROL_RECORD_SIZE, BATCH_CONTROL_RECORD_TYPE, CALLER_BUFFER_APPENDER, callerBufferAppender, checkForCorruptionOnStartup, checksum, cleanupTask, dataFiles, DEFAULT_ARCHIVE_DIRECTORY, DEFAULT_CLEANUP_INTERVAL, DEFAULT_DIRECTORY, DEFAULT_FILE_PREFIX, DEFAULT_FILE_SUFFIX, DEFAULT_MAX_FILE_LENGTH, DEFAULT_MAX_WRITE_BATCH_SIZE, directory, directoryArchive, enableAsyncDiskSync, fileByFileMap, fileMap, filePrefix, fileSuffix, inflightWrites, lastAppendLocation, maxFileLength, preallocationScope, preallocationStrategy, PREFERED_DIFF, RECORD_HEAD_SPACE, started, totalLength, USER_RECORD_TYPE, writeBatchSize| Constructor and Description |
|---|
ReadOnlyJournal(ArrayList<File> dirs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
delete() |
Location |
getFirstLocation() |
void |
start() |
checkBatchRecord, cleanup, corruptRecoveryLocation, getAccessorPool, getCurrentDataFileId, getDirectory, getDirectoryArchive, getDiskSize, getFile, getFileMap, getFilePrefix, getFiles, getFileSuffix, getInflightWrites, getLastAppendLocation, getMaxFileLength, getNextLocation, getPreallocationScope, getPreallocationStrategy, getReplicationTarget, getWriteBatchSize, isArchiveDataLogs, isCheckForCorruptionOnStartup, isChecksum, isEnableAsyncDiskSync, length, preallocateEntireJournalDataFile, read, recoveryCheck, removeDataFiles, setArchiveDataLogs, setCheckForCorruptionOnStartup, setChecksum, setDataFileRemovedListener, setDirectory, setDirectoryArchive, setEnableAsyncDiskSync, setFilePrefix, setFileSuffix, setLastAppendLocation, setMaxFileLength, setPreallocationScope, setPreallocationStrategy, setReplicationTarget, setSizeAccumulator, setWriteBatchSize, toString, update, write, writepublic ReadOnlyJournal(ArrayList<File> dirs)
public void start() throws IOException
start in class JournalIOExceptionpublic void close() throws IOException
close in class JournalIOExceptionpublic Location getFirstLocation() throws IllegalStateException, IOException
IllegalStateExceptionIOExceptionpublic boolean delete() throws IOException
delete in class JournalIOExceptionCopyright © 2005–2017 FuseSource, Corp.. All rights reserved.