Package com.gemstone.gemfire.cache

Examples of com.gemstone.gemfire.cache.DiskStore


  /* (non-Javadoc)
     * @see com.gemstone.gemfire.cache.DiskStoreFactory#create(java.lang.String)
     */
  @Override
  public DiskStore create(final String name) {
    DiskStore mockDiskStore = mock(DiskStore.class, name);

    when(mockDiskStore.getName()).thenReturn(name);
    when(mockDiskStore.getAllowForceCompaction()).thenReturn(allowForceCompaction);
    when(mockDiskStore.getAutoCompact()).thenReturn(autoCompact);
    when(mockDiskStore.getCompactionThreshold()).thenReturn(compactionThreshold);
    when(mockDiskStore.getDiskUsageCriticalPercentage()).thenReturn(diskUsageCriticalPercentage);
    when(mockDiskStore.getDiskUsageWarningPercentage()).thenReturn(diskUsageWarningPercentage);
    when(mockDiskStore.getDiskDirs()).thenReturn(diskDirs);
    when(mockDiskStore.getDiskDirSizes()).thenReturn(diskDirSizes);
    when(mockDiskStore.getMaxOplogSize()).thenReturn(maxOpLogSize);
    when(mockDiskStore.getQueueSize()).thenReturn(queueSize);
    when(mockDiskStore.getTimeInterval()).thenReturn(timeInterval);
    when(mockDiskStore.getWriteBufferSize()).thenReturn(writeBufferSize);

    diskStores.put(name, mockDiskStore);

    return mockDiskStore;
  }
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.DiskStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.