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; }
if (getQueueSize() != props.getQueueSize()) { if (logger.isDebugEnabled()) { logger.debug("QueueSize {} != {}", getQueueSize(), props.getQueueSize()); && getMaxOplogSizeInBytes() == props.getMaxOplogSizeInBytes() && getName().equals(props.getName()) && getQueueSize() == props.getQueueSize() && getTimeInterval() == props.getTimeInterval() && getWriteBufferSize() == props.getWriteBufferSize()
this.maxAsyncItems = getQueueSize(); this.forceFlushCount = new AtomicInteger(); this.asyncMonitor = new Object();
+ props.getName()); if (getQueueSize() != props.getQueueSize()) { this.logger.info(LocalizedStrings.DEBUG, "DEBUG QueueSize " + getQueueSize() + "!=" + props.getQueueSize()); && getMaxOplogSizeInBytes() == props.getMaxOplogSizeInBytes() && getName().equals(props.getName()) && getQueueSize() == props.getQueueSize() && getTimeInterval() == props.getTimeInterval() && getWriteBufferSize() == props.getWriteBufferSize()
assertEquals(333, ds.getTimeInterval()); assertEquals(1, ds.getQueueSize()); assertEquals(333, ds.getTimeInterval()); assertEquals(1, ds.getQueueSize()); assertEquals(333, ds.getTimeInterval()); assertEquals(1, ds.getQueueSize());
assertEquals(2, ds.getMaxOplogSize()); assertEquals(1, ds.getTimeInterval()); assertEquals(0, ds.getQueueSize()); assertEquals(2, ds.getMaxOplogSize()); assertEquals(1, ds.getTimeInterval()); assertEquals(0, ds.getQueueSize()); assertEquals(2, ds.getMaxOplogSize()); assertEquals(1, ds.getTimeInterval()); assertEquals(0, ds.getQueueSize());
this.maxAsyncItems = getQueueSize(); this.forceFlushCount = new AtomicInteger(); this.asyncMonitor = new Object();