@Override public LogWriterI18n getLoggerI18n() { return cache.getLoggerI18n(); }
public DefaultQueryService(Cache cache) { if (cache == null) throw new IllegalArgumentException(LocalizedStrings.DefaultQueryService_CACHE_MUST_NOT_BE_NULL.toLocalizedString()); this.cache = cache; logger = cache.getLoggerI18n(); }
protected LogWriterI18n getLoggerI18n() { if (logger == null) logger = CacheFactory.getAnyInstance().getLoggerI18n(); return logger; }
public HeapEvictor(Cache gemFireCache) { this.cache = gemFireCache; this.logger = cache.getLoggerI18n(); initializeEvictorThreadPool(); }
public void run() { getCache().getLoggerI18n().fine(removeExpectedExString); }; };
public void run() { getCache().getLoggerI18n().fine(addExpectedExString); getCache().getLoggerI18n().fine(addExpectedBelow); }; };
public void run() { getCache().getLoggerI18n().fine(addExpectedExString); getRootRegion().getSubregion(regionName).put(1, new byte[943720]); getCache().getLoggerI18n().fine(removeExpectedExString); return; } });
@Override public void afterCreate(EntryEvent event) { //Make sure we deserialize the new value event.getRegion().getCache().getLoggerI18n().fine("invoked afterCreate with " + event); event.getRegion().getCache().getLoggerI18n().info(LocalizedStrings.DEBUG, "value is " + event.getNewValue()); }
@Override public void afterCreate(EntryEvent event) { LogWriterI18n logger = event.getRegion().getCache().getLoggerI18n(); PartitionRegionConfig prConfig = (PartitionRegionConfig)event.getNewValue(); if (!prConfig.getElderFPAs().isEmpty()) { updatePartitionMap(prConfig, logger); } }
@Override public void afterUpdate(EntryEvent event) { LogWriterI18n logger = event.getRegion().getCache().getLoggerI18n(); PartitionRegionConfig prConfig = (PartitionRegionConfig)event.getNewValue(); if (!prConfig.getElderFPAs().isEmpty()) { updatePartitionMap(prConfig, logger); } }
/** Should be constructed from DefaultQueryService * @see QueryService#newQuery */ public DefaultQuery(String queryString, Cache cache) { this.queryString = queryString; QCompiler compiler = new QCompiler(cache.getLoggerI18n()); this.compiledQuery = compiler.compileQuery(queryString); this.traceOn = (compiler.isTraceRequested() || QUERY_VERBOSE); this.cache = cache; this.stats = new DefaultQueryStatistics(); }
public Object call() throws Exception { GemFireCacheImpl gfCache = (GemFireCacheImpl)getCache(); getCache().getLoggerI18n().fine(addExpectedBelow); gfCache.getResourceManager().getHeapMonitor().updateStateAndSendEvent(850); getCache().getLoggerI18n().fine(removeExpectedBelow); return null; } });
public Object call() throws Exception { getCache().getLoggerI18n().fine(addExpectedBelow); ((GemFireCacheImpl)getCache()).getResourceManager().getHeapMonitor().updateStateAndSendEvent(750); getCache().getLoggerI18n().fine(removeExpectedBelow); return null; } });
public Object call() throws Exception { getCache().getLoggerI18n().fine(addExpectedExString); Region region = getRootRegion().getSubregion(regionName); if (!region.containsKey("oh1")) { region.put("oh5", new byte[954204]); } else { region.put("oh5", new byte[122880]); } getCache().getLoggerI18n().fine(removeExpectedExString); return null; } });
public Object call() throws Exception { getCache().getLoggerI18n().fine(addExpectedExString); ((GemFireCacheImpl)getCache()).getResourceManager().getHeapMonitor().updateStateAndSendEvent(950); HeapMemoryMonitor.setTestBytesUsedForThresholdSet(950); getCache().getLoggerI18n().fine(removeExpectedExString); return null; } });
public Object call() throws Exception { getCache().getLoggerI18n().fine(addExpectedBelow); Region region = getRootRegion().getSubregion(regionName); region.put("oh1", new byte[245760]); region.put("oh2", new byte[184320]); region.put("oh3", new byte[63488]); region.put("oh4", new byte[378160]); getCache().getLoggerI18n().fine(removeExpectedBelow); return null; } });
public Object call() throws Exception { getCache().getLoggerI18n().fine(addExpectedBelow); Region region = getRootRegion().getSubregion(regionName); region.remove("oh1"); region.remove("oh2"); region.remove("oh3"); region.remove("oh4"); region.remove("oh5"); getCache().getLoggerI18n().fine(removeExpectedBelow); return null; } });
private void bindIterators(ExecutionContext context, String string) throws AmbiguousNameException, TypeMismatchException, NameResolutionException { QCompiler compiler = new QCompiler(CacheUtils.getCache().getLoggerI18n()); List compilerItrDefs = compiler.compileFromClause(string); context.newScope(0); for (Object itrDef : compilerItrDefs) { CompiledIteratorDef iterDef = (CompiledIteratorDef) itrDef; RuntimeIterator rIter = iterDef.getRuntimeIterator(context); context.bindIterator(rIter); } }
@Override public void afterCreate(EntryEvent event) { event.getRegion().getCache().getLoggerI18n().info( LocalizedStrings.ONE_ARG, "Create Event for allPR: key = " + event.getKey() + " oldVal = " + event.getOldValue() + " newVal = " + event.getNewValue() + " Op = " + event.getOperation() + " origin = " + event.getDistributedMember() + " isNetSearch = " + event.getOperation().isNetSearch()); }
@Override public void afterDestroy(EntryEvent event) { event.getRegion().getCache().getLoggerI18n().info( LocalizedStrings.ONE_ARG, "Destroy Event for allPR: key = " + event.getKey() + " oldVal = " + event.getOldValue() + " newVal = " + event.getNewValue() + " Op = " + event.getOperation() + " origin = " + event.getDistributedMember() + " isNetSearch = " + event.getOperation().isNetSearch()); } });