/** * Returns region attributes for a <code>LOCAL</code> region */ protected RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); return factory.createRegionAttributes(); }
/** * Returns region attributes for a <code>LOCAL</code> region */ protected RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); return factory.createRegionAttributes(); }
public void run2() throws CacheException { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); final Region region1 = createRegion(name, factory.createRegionAttributes()); final Region region2 = createRegion(name+"_2", factory.createRegionAttributes()); for (int i=0; i<numberOfEntries; i++) { region1.put("key-"+i, new TestObject(i, "ibm")); region2.put("key-"+i, new TestObject(i, "ibm")); } } });
public void run2() throws CacheException { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setMirrorType(MirrorType.KEYS_VALUES); RegionAttributes attrs = factory.createRegionAttributes(); cache.createVMRegion(REGION_NAME, attrs); } };
private synchronized static void InitializeSubRegions() { Region parentRegion = RegionHelper.createRegion(parentRegionName); Region subRegion; String[] subRegionNames = DeterminRegionNames(); for (String subRegionName : subRegionNames) { AttributesFactory attributesFactory = RegionHelper.getAttributesFactory(subRegionName); RegionAttributes regionAttributes = attributesFactory.createRegionAttributes(); RecoveryTestVersionHelper.createDiskStore(regionAttributes); subRegion = parentRegion.createSubregion(subRegionName, regionAttributes); testInstance.theRegions.add(subRegion); } testInstance.logRegionHierarchy(); }
public void run2() throws CacheException { getCache(); AttributesFactory regionFactory = new AttributesFactory(); regionFactory.setScope(Scope.LOCAL); BridgeTestCase.configureConnectionPool(regionFactory, host0, port1, thePort2, true, -1, -1, null); createRegion(regions[0], regionFactory.createRegionAttributes()); } };
private static RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); Scope scope = DLockPrms.getScope(); factory.setScope( scope ); Log.getLogWriter().info("Setting scope to " + scope); RegionAttributes ratts = factory.createRegionAttributes(); return ratts; }
private static RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); Scope scope = DLockPrms.getScope(); factory.setScope( scope ); Log.getLogWriter().info("Setting scope to " + scope); RegionAttributes ratts = factory.createRegionAttributes(); return ratts; } /**
public void run2() throws CacheException { getCache(); AttributesFactory regionFactory = new AttributesFactory(); regionFactory.setScope(Scope.LOCAL); BridgeTestCase.configureConnectionPool(regionFactory, host0, port1, thePort2, true, -1, -1, null); createRegion(regions[0], regionFactory.createRegionAttributes()); } };
/** * Creats a vm playing a role "rolePlayerG". The roles parameter * is defined in the conf file for the test by specifing hydra.GemFirePrms-roles * property for all the vms. * * */ public static void createRolePlayerGVm(){ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameG, attr); }
/** * Creats a vm playing a role "rolePlayerA". The roles parameter * is defined in the conf file for the test by specifing hydra.GemFirePrms-roles * property for all the vms. * * */ public static void createRolePlayerAVm(){ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameA, attr); }
/** * Creats a vm playing a role "rolePlayerE". The roles parameter * is defined in the conf file for the test by specifing hydra.GemFirePrms-roles * property for all the vms. * * */ public static void createRolePlayerEVm(){ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameE, attr); } /**
/** * Puts multiple keys value pair in RegionB. * */ public static void putKeysValuesRegionB() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameB, attr); putKeysValues(region); }
/** * Puts multiple keys value pair in RegionC. * */ public static void putKeysValuesRegionC() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameC, attr); putKeysValues(region); }
/** * Puts multiple keys value pair in RegionD. * */ public static void putKeysValuesRegionD() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameD, attr); putKeysValues(region); }
private static RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); Scope scope = DLockPrms.getScope(); factory.setScope( DLockPrms.getScope() ); Log.getLogWriter().info("Setting scope to " + scope); RegionAttributes ratts = factory.createRegionAttributes(); return ratts; } /**
/** * Puts multiple keys value pair in RegionE. * */ public static void putKeysValuesRegionE() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameE, attr); putKeysValues(region); }
/** * Puts multiple keys value pair in RegionF. * */ public static void putKeysValuesRegionF() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameF, attr); putKeysValues(region); }
/** * Puts multiple keys value pair in RegionA. * */ public static void putKeysValuesRegionA() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameA, attr); putKeysValues(region); }
/** * Puts multiple keys value pair in RegionG. * */ public static void putKeysValuesRegionG() throws Exception{ Cache cache = CacheUtil.createCache(); AttributesFactory fac = new AttributesFactory(); fac.setScope(Scope.DISTRIBUTED_ACK); fac.setDataPolicy(DataPolicy.REPLICATE); RegionAttributes attr = fac.createRegionAttributes(); Region region = CacheUtil.createRegion(regionNameG, attr); putKeysValues(region); }