public void run() { cache.getLogger().info("<ExpectedException action=remove>" + "No target node found for KEY = " + "|Server could not send the reply" + "|Unexpected exception during" + "</ExpectedException>"); } };
public void run2() { getCache().getLogger().info("<ExpectedException action=add>" + expectedErr + "</ExpectedException>"); } });
protected static void message(String s) { System.out.println(s); System.err.println(s); getLogWriter().info(s); cache.getLogger().info(s); }
public void run2() throws CacheException { getCache().getLogger().info("<ExpectedException action=add>" + expectedExceptions + "</ExpectedException>"); } };
public void run2() throws CacheException { getCache().getLogger().info("<ExpectedException action=remove>" + expectedExceptions + "</ExpectedException>"); } };
protected Cache createCache() { // useful for debugging: // props.put(DistributionConfig.LOG_FILE_NAME, "diskRegionTestingBase_system.log"); // props.put(DistributionConfig.LOG_LEVEL_NAME, getGemFireLogLevel()); cache = new CacheFactory(props).create(); ds = cache.getDistributedSystem(); logWriter = cache.getLogger(); return cache; }
@Override public void beforeDestroy(EntryEvent event) throws CacheWriterException { invoked = true; event.getRegion().getCache().getLogger().info("SWAP:writer:"+event); assertTrue(event.isOriginRemote()); } }
public void run2() throws CacheException { getCache().getLogger().info("<ExpectedException action=add>" + expectedExceptions + "</ExpectedException>"); getLogWriter().info("<ExpectedException action=add>" + expectedExceptions + "</ExpectedException>"); } };
public void run2() throws CacheException { getLogWriter().info("<ExpectedException action=remove>" + expectedExceptions + "</ExpectedException>"); getCache().getLogger().info("<ExpectedException action=remove>" + expectedExceptions + "</ExpectedException>"); } };
public void run2() throws CacheException { Region region = cache.getRegion(Region.SEPARATOR + regionName); assertNotNull(region); region.destroy(key); cache.getLogger().info("done destroy successfully"); } };
@Override public void afterCreate(EntryEvent event) { event.getRegion().getCache().getLogger().warning("ZZZ AFTER CREATE:"+event.getKey()); invoked = true; invokeCount++; putCount++; creates++; event.getRegion().getCache().getLogger().warning("ZZZ AFTER CREATE:"+event.getKey()+" isPutAll:"+event.getOperation().isPutAll()+" op:"+event.getOperation()); putAllOp = event.getOperation().isPutAll(); isOriginRemote = event.isOriginRemote(); } @Override
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); getCache().getRegion(ORDER); getCache().getRegion(D_REFERENCE); ClientListener cl = (ClientListener) custRegion.getAttributes().getCacheListeners()[0]; getCache().getLogger().info("SWAP:CLIENTinvoked:"+cl.invoked); assertTrue(((ClientCQListener)custRegion.getCache().getQueryService().getCqs()[0].getCqAttributes().getCqListener()).invoked); assertTrue(cl.invoked); return null; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); getCache().getRegion(ORDER); getCache().getRegion(D_REFERENCE); ClientListener cl = (ClientListener) custRegion.getAttributes().getCacheListeners()[0]; getCache().getLogger().info("SWAP:CLIENTinvoked:"+cl.invoked); assertTrue(cl.invoked); assertTrue(((ClientCQListener)custRegion.getCache().getQueryService().getCqs()[0].getCqAttributes().getCqListener()).invoked); return null; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); getCache().getRegion(ORDER); getCache().getRegion(D_REFERENCE); ClientListener cl = (ClientListener) custRegion.getAttributes().getCacheListeners()[0]; getCache().getLogger().info("SWAP:CLIENTinvoked:"+cl.invoked); assertTrue(cl.invoked); assertTrue(((ClientCQListener)custRegion.getCache().getQueryService().getCqs()[0].getCqAttributes().getCqListener()).invoked); return null; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); getCache().getRegion(ORDER); getCache().getRegion(D_REFERENCE); ClientListener cl = (ClientListener) custRegion.getAttributes().getCacheListeners()[0]; getCache().getLogger().info("SWAP:CLIENTinvoked:"+cl.invoked); assertTrue(cl.invoked); assertTrue(((ClientCQListener)custRegion.getCache().getQueryService().getCqs()[0].getCqAttributes().getCqListener()).invoked); return null; } });
public void run2() throws CacheException { AttributesFactory factory = new AttributesFactory(); //factory.setDataPolicy(DataPolicy.PARTITION); factory.setPartitionAttributes((new PartitionAttributesFactory()).setTotalNumBuckets(8).create()); createRegion(exampleRegionName, factory.create()); createRegion(exampleRegionName2, factory.create()); Region exampleRegion = getRootRegion().getSubregion(exampleRegionName); exampleRegion.getCache().getLogger().fine("#### CREATING PR REGION...."); } });