final public void concurrencyChecksDefinition(AttributesFactory afact) throws ParseException, StandardException { jj_consume_token(ENABLE); jj_consume_token(CONCURRENCY); jj_consume_token(CHECKS); afact.setConcurrencyChecksEnabled(true); }
/** * Returns the attributes of a region to be tested. */ protected RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); return factory.create(); }
/** * Returns region attributes for a <code>GLOBAL</code> region */ protected RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setDataPolicy(DataPolicy.PERSISTENT_REPLICATE); factory.setConcurrencyChecksEnabled(true); return factory.create(); }
/** * Returns region attributes for a <code>GLOBAL</code> region */ protected RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.GLOBAL); factory.setDataPolicy(DataPolicy.REPLICATE); factory.setConcurrencyChecksEnabled(true); return factory.create(); }
/** * Returns region attributes for a <code>GLOBAL</code> region */ protected RegionAttributes getRegionAttributes() { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setDataPolicy(DataPolicy.PERSISTENT_REPLICATE); factory.setConcurrencyChecksEnabled(true); return factory.create(); }
public void run2() throws CacheException { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setDataPolicy(DataPolicy.EMPTY); factory.setConcurrencyChecksEnabled(false); createRegion(name, factory.create()); } };
@Override public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); System.out.println("!!!!!!!!!!!!!!!!! Host:"+host0+" port:"+port+" port2:"+port2); BridgeTestCase.configureConnectionPool(factory,getServerHostName(host),port,port2,true,-1,-1, null); createRegion(name, factory.create()); } };
@Override public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,port2,true,-1,-1, null); createRegion(name, factory.create()); } };
@Override public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); // create bridge writer BridgeTestCase.configureConnectionPool(factory,host0,port,-1,false,-1,-1, null); createRegion(name, factory.create()); } };
@Override public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,false,-1,-1, null); createRegion(name, factory.create()); } };
public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,false,-1,-1, null); createRegion(name, factory.create()); } };
@Override public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,false,-1,-1, null); createRegion(name, factory.create()); } };
public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,true,-1,-1, null); createRegion(name, factory.create()); } };
public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,true,-1,-1, null); createRegion(name, factory.create()); } };
public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,true,-1,-1, null); createRegion(name, factory.create()); } };
public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,true,-1,-1, null); createRegion(name, factory.create()); } };
public void run2() throws CacheException { getLonerSystem(); getCache(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); BridgeTestCase.configureConnectionPool(factory,host0,port,-1,true,-1,-1, null); Region rgn = createRegion(name, factory.create()); rgn.registerInterestRegex(".*", false, false); } };
public void run2() throws CacheException { getLonerSystem(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); factory.setConcurrencyChecksEnabled(false); // create bridge writer BridgeTestCase.configureConnectionPool(factory,host0,port,-1,true,-1,-1, null); factory.addCacheListener(new ControlListener()); factory.setDataPolicy(DataPolicy.EMPTY); // make sure empty works with client publishers createRegion(name, factory.create()); } };
public static void createRegionInVm0() throws Exception { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setDataPolicy(DataPolicy.REPLICATE); factory.setConcurrencyChecksEnabled(true); RegionAttributes attr = factory.create(); region = new MapClearGIITest("dumb object to get cache").getCache().createRegion("map", attr); // region = region.createSubregion("map",attr); getLogWriter().info("Region in VM0 created "); } /*
public Object call() throws Exception { AttributesFactory<Integer, String> af = new AttributesFactory<Integer, String>(); af.setScope(Scope.DISTRIBUTED_ACK); af.setDataPolicy(DataPolicy.EMPTY); af.setConcurrencyChecksEnabled(getConcurrencyChecksEnabled()); getCache().createRegionFactory(af.create()).create(EMPTY_REGION); af.setDataPolicy(DataPolicy.REPLICATE); getCache().createRegionFactory(af.create()).create(D_REFERENCE); return null; } });