private void initDiskData() { this.name = diskStore.getName(); this.compactionThreshold = diskStore.getCompactionThreshold(); this.timeInterval = diskStore.getTimeInterval(); this.writeBufferSize = diskStore.getWriteBufferSize(); this.maxOpLogSize = diskStore.getMaxOplogSize(); this.queueSize = diskStore.getQueueSize(); this.isAutoCompact = diskStore.getAutoCompact(); this.isForceCompactionAllowed = diskStore.getAllowForceCompaction(); this.directoryHolders = diskStore.getDirectoryHolders(); File[] diskDirs = diskStore.getDiskDirs(); String[] diskDirStr = new String[diskDirs.length]; for (int i = 0; i < diskDirs.length; i++) { diskDirStr[i] = diskDirs[i].getName(); } this.diskDirectories = diskDirStr; }
private void initDiskData() { this.name = diskStore.getName(); this.compactionThreshold = diskStore.getCompactionThreshold(); this.timeInterval = diskStore.getTimeInterval(); this.writeBufferSize = diskStore.getWriteBufferSize(); this.maxOpLogSize = diskStore.getMaxOplogSize(); this.queueSize = diskStore.getQueueSize(); this.isAutoCompact = diskStore.getAutoCompact(); this.isForceCompactionAllowed = diskStore.getAllowForceCompaction(); this.directoryHolders = diskStore.getDirectoryHolders(); File[] diskDirs = diskStore.getDiskDirs(); String[] diskDirStr = new String[diskDirs.length]; for (int i = 0; i < diskDirs.length; i++) { diskDirStr[i] = diskDirs[i].getAbsolutePath(); } this.diskDirectories = diskDirStr; }
public boolean sameAs(DiskStoreAttributes props) { if (getAllowForceCompaction() != props.getAllowForceCompaction()) { if (logger.isDebugEnabled()) { logger.debug("allowForceCompaction {} != {}", getAllowForceCompaction(), props.getAllowForceCompaction()); return getAllowForceCompaction() == props.getAllowForceCompaction() && getAutoCompact() == props.getAutoCompact() && getCompactionThreshold() == props.getCompactionThreshold()
|| (!isOffline() && (getAutoCompact() || getAllowForceCompaction() || ENABLE_NOTIFY_TO_ROLL)); this.maxAsyncItems = getQueueSize(); this.forceFlushCount = new AtomicInteger();
public boolean sameAs(DiskStoreAttributes props) { if (getAllowForceCompaction() != props.getAllowForceCompaction()) { this.logger.info(LocalizedStrings.DEBUG, "DEBUG allowForceCompaction " + getAllowForceCompaction() + "!=" + props.getAllowForceCompaction()); return getAllowForceCompaction() == props.getAllowForceCompaction() && getAutoCompact() == props.getAutoCompact() && getCompactionThreshold() == props.getCompactionThreshold()
|| (!isOffline() && (getAutoCompact() || getAllowForceCompaction() || ENABLE_NOTIFY_TO_ROLL)); this.maxAsyncItems = getQueueSize(); this.forceFlushCount = new AtomicInteger();