protected void createDiskStore(DiskStoreAttributesCreation creation, GemFireCacheImpl cache) { // Don't let the DiskStoreAttributesCreation escape to the user DiskStoreFactory factory = cache.createDiskStoreFactory(creation); factory.create(creation.getName()); }
protected void createDiskStore(DiskStoreAttributesCreation creation, GemFireCacheImpl cache) { // Don't let the DiskStoreAttributesCreation escape to the user DiskStoreFactory factory = cache.createDiskStoreFactory(creation); factory.create(creation.getName()); }
public final DiskStoreImpl getOrCreateDefaultDiskStore() { DiskStoreImpl result = (DiskStoreImpl) findDiskStore(null); if (result == null) { synchronized (this) { result = (DiskStoreImpl) findDiskStore(null); if (result == null) { result = (DiskStoreImpl) createDiskStoreFactory().create(DEFAULT_DS_NAME); } } } return result; }
public DiskStoreImpl getOrCreateDefaultDiskStore() { DiskStoreImpl result = (DiskStoreImpl) findDiskStore(null); if (result == null) { synchronized (this) { result = (DiskStoreImpl) findDiskStore(null); if (result == null) { result = (DiskStoreImpl) createDiskStoreFactory().create(DEFAULT_DS_NAME); } } } return result; }
private DiskStoreImpl createDiskStore() { DiskStoreFactory dsf = cache.createDiskStoreFactory(); dsf.setDiskDirs(diskDirs); dsf.setMaxOplogSize(1); String name = "diskStore"; DiskStoreImpl ds = (DiskStoreImpl) dsf.create(name); return ds; }
DiskStoreFactory dsf = cache.createDiskStoreFactory();
DiskStoreFactory dsf = cache.createDiskStoreFactory();
DiskStoreFactory dsf = cache.createDiskStoreFactory();
cache.createDiskStoreFactory() .setDiskDirs(diskDirs) .setAutoCompact(true)
public void run2() throws CacheException { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setDataPolicy(DataPolicy.REPLICATE); // setting the eviction attributes. if (eviction) { File []f = new File[1]; f[0] = new File(dirName); f[0].mkdir(); DiskStoreFactory dsf = GemFireCacheImpl.getInstance().createDiskStoreFactory(); DiskStore ds1 = dsf.setDiskDirs(f).create("ds1"); factory.setDiskStoreName("ds1"); EvictionAttributes evictAttrs = EvictionAttributes .createLRUEntryAttributes(100, EvictionAction.OVERFLOW_TO_DISK); factory.setEvictionAttributes(evictAttrs); } // Create region createRegion(exampleRegionName, factory.create()); createRegion(exampleRegionName2, factory.create()); } });
DiskStoreFactory dsf = cache.createDiskStoreFactory(); dsf.setAutoCompact(true) .setDiskDirsAndSizes(dirs, new int[] { Integer.MAX_VALUE })
DiskStoreFactory dsf = cache.createDiskStoreFactory(); DiskStore bsi = dsf.setAutoCompact(true) .setDiskDirsAndSizes(dirs, new int[] { Integer.MAX_VALUE })
DiskStoreFactory diskStoreFactory = cache.createDiskStoreFactory(diskStoreAttrs); diskStoreFactory.create(diskStoreName);
+ GfxdConstants.DEFAULT_PERSISTENT_DD_SUBDIR; DiskStoreFactory dsf = cache.createDiskStoreFactory();
+ GfxdConstants.DEFAULT_PERSISTENT_DD_SUBDIR; DiskStoreFactory dsf = cache.createDiskStoreFactory();
DiskStoreFactory diskStoreFactory = cache.createDiskStoreFactory(diskStoreAttrs); diskStoreFactory.create(diskStoreName);
return getGemFireCache().getOrCreateDefaultDiskStore(); } else /* backwards compat mode */{ DiskStoreFactory dsf = getGemFireCache().createDiskStoreFactory(); dsf.setDiskDirsAndSizes(getDiskDirs(), getDiskDirSizes()); DiskWriteAttributes dwa = getDiskWriteAttributes();
return getGemFireCache().getOrCreateDefaultDiskStore(); } else /* backwards compat mode */{ DiskStoreFactory dsf = getGemFireCache().createDiskStoreFactory(); dsf.setDiskDirsAndSizes(getDiskDirs(), getDiskDirSizes()); DiskWriteAttributes dwa = getDiskWriteAttributes();
public void testCompactionDuringBackup() throws IOException, InterruptedException { DiskStoreFactory dsf = cache.createDiskStoreFactory(); dsf.setDiskDirs(diskDirs); dsf.setMaxOplogSize(1);
directory.mkdir(); File[] dirs1 = new File[] { directory }; DiskStoreFactory dsf = this.c.createDiskStoreFactory(); dsf.setDiskDirs(dirs1); DiskStore diskStore = dsf.create("mydisk");