DiskStore ds = other.findDiskStore(name); if (ds == null) { getLogger().fine("Disk store " + name+" not found."); throw new RuntimeException(LocalizedStrings.CacheCreation_DISKSTORE_NOTFOUND_0.toLocalizedString(name)); } else { if (!dsac.sameAs(ds)) { getLogger().fine("Attributes for disk store " + name + " do not match"); throw new RuntimeException(LocalizedStrings.CacheCreation_ATTRIBUTES_FOR_DISKSTORE_0_DO_NOT_MATCH.toLocalizedString(name)); RegionAttributes otherAttrs = other.getRegionAttributes(myId); if (otherAttrs == null) { getLogger().fine("No attributes for " + myId); throw new RuntimeException(LocalizedStrings.CacheCreation_NO_ATTRIBUTES_FOR_0.toLocalizedString(myId)); getLogger().fine("Attributes for " + myId + " do not match"); throw new RuntimeException(LocalizedStrings.CacheCreation_ATTRIBUTES_FOR_0_DO_NOT_MATCH.toLocalizedString(myId));
DiskStore ds = other.findDiskStore(name); if (ds == null) { getLogger().fine("Disk store " + name+" not found."); throw new RuntimeException(LocalizedStrings.CacheCreation_DISKSTORE_NOTFOUND_0.toLocalizedString(name)); } else { if (!dsac.sameAs(ds)) { getLogger().fine("Attributes for disk store " + name + " do not match"); throw new RuntimeException(LocalizedStrings.CacheCreation_ATTRIBUTES_FOR_DISKSTORE_0_DO_NOT_MATCH.toLocalizedString(name)); RegionAttributes otherAttrs = other.getRegionAttributes(myId); if (otherAttrs == null) { getLogger().fine("No attributes for " + myId); throw new RuntimeException(LocalizedStrings.CacheCreation_NO_ATTRIBUTES_FOR_0.toLocalizedString(myId)); getLogger().fine("Attributes for " + myId + " do not match"); throw new RuntimeException(LocalizedStrings.CacheCreation_ATTRIBUTES_FOR_0_DO_NOT_MATCH.toLocalizedString(myId));
ClientSubscriptionConfig csc = bs.getClientSubscriptionConfig(); csc.setEvictionPolicy("entry"); cache.getLogger().config( "EvictionPolicy : " + csc.getEvictionPolicy()); csc.setCapacity(501); cache.getLogger().config( "EvictionCapacity : " + csc.getCapacity()); cache.getLogger().config( "Eviction disk store : " + csc.getDiskStoreName());
ClientSubscriptionConfig csc = bs.getClientSubscriptionConfig(); csc.setEvictionPolicy("entry"); cache.getLogger().config( "EvictionPolicy : " + csc.getEvictionPolicy()); csc.setCapacity(501); cache.getLogger().config( "EvictionCapacity : " + csc.getCapacity()); csc.setOverflowDirectory("overFlow"); cache.getLogger().config( "EvictionOverflowDirectory : " + csc.getOverflowDirectory());
ClientSubscriptionConfig csc = bs.getClientSubscriptionConfig(); csc.setEvictionPolicy("entry"); cache.getLogger().config( "EvictionPolicy : " + csc.getEvictionPolicy()); csc.setCapacity(501); cache.getLogger().config( "EvictionCapacity : " + csc.getCapacity()); File overflowDirectory = new File("overFlow"); cache.getLogger().config( "Eviction disk store : " + csc.getDiskStoreName());