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()); }
/** * After popping the current <code>DiskStoreAttributesCreation</code> off the * stack, we add it to the <code>DiskStoreAttionCreation</code> that should be on the * top of the stack. */ private void endDiskStore() { DiskStoreAttributesCreation dsac = (DiskStoreAttributesCreation) stack.pop(); CacheCreation cache; Object top = stack.peek(); if (top instanceof CacheCreation) { cache = (CacheCreation) top; } else { String s = "Did not expected a " + top.getClass().getName() + " on top of the stack."; Assert.assertTrue(false, s); cache = null; // Dead code } String name = dsac.getName(); if (name != null) { cache.setDiskStore(name, dsac); } }
/** * After popping the current <code>DiskStoreAttributesCreation</code> off the * stack, we add it to the <code>DiskStoreAttionCreation</code> that should be on the * top of the stack. */ private void endDiskStore() { DiskStoreAttributesCreation dsac = (DiskStoreAttributesCreation) stack.pop(); CacheCreation cache; Object top = stack.peek(); if (top instanceof CacheCreation) { cache = (CacheCreation) top; } else { String s = "Did not expected a " + top.getClass().getName() + " on top of the stack."; Assert.assertTrue(false, s); cache = null; // Dead code } String name = dsac.getName(); if (name != null) { cache.setDiskStore(name, dsac); } }
String name = dsac.getName(); DiskStore ds = other.findDiskStore(name); if (ds == null) {
String name = dsac.getName(); DiskStore ds = other.findDiskStore(name); if (ds == null) {
DiskStore ds = factory.create(creation.getName());
DiskStore ds = factory.create(creation.getName());