public class ReadOnlyJournal extends Journal
Journal.WriteCommand, Journal.WriteKey
accessorPool, 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, PREFERED_DIFF, preferedFileLength, RECORD_HEAD_SPACE, started, totalLength, USER_RECORD_TYPE, writeBatchSize
Constructor and Description |
---|
ReadOnlyJournal(java.util.ArrayList<java.io.File> dirs) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
delete() |
Location |
getFirstLocation() |
void |
start() |
appendedExternally, checkBatchRecord, cleanup, getCurrentDataFileId, getDirectory, getDirectoryArchive, getDiskSize, getFile, getFileMap, getFilePrefix, getFiles, getFileSuffix, getInflightWrites, getLastAppendLocation, getMaxFileLength, getNextLocation, getNextLocation, getNextLocation, getReplicationTarget, getWriteBatchSize, isArchiveDataLogs, isCheckForCorruptionOnStartup, isChecksum, isEnableAsyncDiskSync, length, read, recoveryCheck, removeDataFiles, setArchiveDataLogs, setCheckForCorruptionOnStartup, setChecksum, setDirectory, setDirectoryArchive, setEnableAsyncDiskSync, setFilePrefix, setFileSuffix, setLastAppendLocation, setMaxFileLength, setReplicationTarget, setSizeAccumulator, setWriteBatchSize, toString, update, write, write
public ReadOnlyJournal(java.util.ArrayList<java.io.File> dirs)
public void start() throws java.io.IOException
public void close() throws java.io.IOException
public Location getFirstLocation() throws java.lang.IllegalStateException, java.io.IOException
java.lang.IllegalStateException
java.io.IOException
Copyright © 2005-2017. All Rights Reserved.