/** * Returns the compressor name. * @return the compressor name. */ public String getCompressorName() { return useCompression() ? compressor.getClass().getSimpleName() : "none"; }
/** * Returns the compressor name. * @return the compressor name. */ public String getCompressorName() { return useCompression() ? compressor.getClass().getSimpleName() : "none"; }
/** * Returns the compressor name. * @return the compressor name. */ public String getCompressorName() { return useCompression() ? compressor.getClass().getSimpleName() : "none"; }
public PeriodicCommitLogService(final CommitLog commitLog) { super(commitLog, "PERIODIC-COMMIT-LOG-SYNCER", DatabaseDescriptor.getCommitLogSyncPeriod(), !(commitLog.configuration.useCompression() || commitLog.configuration.useEncryption())); }
static CommitLogSegment createSegment(CommitLog commitLog, AbstractCommitLogSegmentManager manager) { Configuration config = commitLog.configuration; CommitLogSegment segment = config.useEncryption() ? new EncryptedSegment(commitLog, manager) : config.useCompression() ? new CompressedSegment(commitLog, manager) : new MemoryMappedSegment(commitLog, manager); segment.writeLogHeader(); return segment; }
/** * Checks if the segments use a buffer pool. * * @param commitLog the commit log * @return <code>true</code> if the segments use a buffer pool, <code>false</code> otherwise. */ static boolean usesBufferPool(CommitLog commitLog) { Configuration config = commitLog.configuration; return config.useEncryption() || config.useCompression(); }
public PeriodicCommitLogService(final CommitLog commitLog) { super(commitLog, "PERIODIC-COMMIT-LOG-SYNCER", DatabaseDescriptor.getCommitLogSyncPeriod(), !(commitLog.configuration.useCompression() || commitLog.configuration.useEncryption())); }
/** * Checks if the segments use a buffer pool. * * @param commitLog the commit log * @return <code>true</code> if the segments use a buffer pool, <code>false</code> otherwise. */ static boolean usesBufferPool(CommitLog commitLog) { Configuration config = commitLog.configuration; return config.useEncryption() || config.useCompression(); }
static CommitLogSegment createSegment(CommitLog commitLog, AbstractCommitLogSegmentManager manager) { Configuration config = commitLog.configuration; CommitLogSegment segment = config.useEncryption() ? new EncryptedSegment(commitLog, manager) : config.useCompression() ? new CompressedSegment(commitLog, manager) : new MemoryMappedSegment(commitLog, manager); segment.writeLogHeader(); return segment; }
/** * Checks if the segments use a buffer pool. * * @param commitLog the commit log * @return <code>true</code> if the segments use a buffer pool, <code>false</code> otherwise. */ static boolean usesBufferPool(CommitLog commitLog) { Configuration config = commitLog.configuration; return config.useEncryption() || config.useCompression(); }
static CommitLogSegment createSegment(CommitLog commitLog, AbstractCommitLogSegmentManager manager) { Configuration config = commitLog.configuration; CommitLogSegment segment = config.useEncryption() ? new EncryptedSegment(commitLog, manager) : config.useCompression() ? new CompressedSegment(commitLog, manager) : new MemoryMappedSegment(commitLog, manager); segment.writeLogHeader(); return segment; }
public PeriodicCommitLogService(final CommitLog commitLog) { super(commitLog, "PERIODIC-COMMIT-LOG-SYNCER", DatabaseDescriptor.getCommitLogSyncPeriod(), !(commitLog.configuration.useCompression() || commitLog.configuration.useEncryption())); }