@Override public void clear() { this.region.clear(); }
static void clearRegion() { CCRegion.clear(); }
@Override public void clear() { this.region.clear(); }
@Override public void clear() { this.region.clear(); }
public static void clearCCRegion() { CCRegion.clear(); }
private void clearRegion() { LocalRegion region = (LocalRegion)cache.getRegion(Region.SEPARATOR + REGION_NAME); assertNotNull(region); region.clear(); }
public void run2() { LocalRegion region = (LocalRegion)cache.getRegion(Region.SEPARATOR + REGION_NAME); assertNotNull(region); region.clear(); } };
public void run() { Cache cache = CacheFactory.getAnyInstance(); region.getDiskRegion().acquireWriteLock(); try { Thread putThread = new Thread(new putThread(region)); putThread.start(); Thread.sleep(2000); synchronized (mutex) { mutex.notify(); } Thread.sleep(5000); region.clear(); } catch (InterruptedException e) { if (cache.getLogger().fineEnabled()) { cache.getLogger().fine( "TestLRUClockHand#clearThread Got an interrupted Exception"); } fail("interrupted"); } catch (Exception ie) { fail("TestLRUClockHand#clearThread Got an Exception"); } finally { region.getDiskRegion().releaseWriteLock(); } } }
@Override protected boolean operateOnRegion(DistributionManager dm, LocalRegion r, long startTime) throws CacheException, RemoteOperationException { if (logger.isTraceEnabled(LogMarker.DM)) { logger.trace(LogMarker.DM, "DistributedRemoteRegionOperation operateOnRegion: {}", r.getFullPath()); } if ( !(r instanceof PartitionedRegion) ) { r.waitOnInitialization(); // bug #43371 - accessing a region before it's initialized } if (op.equals(Operation.CLEAR)) { r.clear(); // } else { // r.invalidateRegion(); } //r.getPrStats().endPartitionMessagesProcessing(startTime); RemoteRegionOperationReplyMessage.send(getSender(), getProcessorId(), getReplySender(dm)); // Unless there was an exception thrown, this message handles sending the // response return false; }
case 5: if (includeClear) { CCRegion.clear(); break; } else {
@Override protected boolean operateOnRegion(DistributionManager dm, LocalRegion r, long startTime) throws CacheException, RemoteOperationException { LogWriterI18n l = r.getCache().getLoggerI18n(); if (DistributionManager.VERBOSE) { l.fine("DistributedRemoteRegionOperation operateOnRegion: " + r.getFullPath()); } if ( !(r instanceof PartitionedRegion) ) { r.waitOnInitialization(); // bug #43371 - accessing a region before it's initialized } if (op.equals(Operation.CLEAR)) { r.clear(); // } else { // r.invalidateRegion(); } //r.getPrStats().endPartitionMessagesProcessing(startTime); RemoteRegionOperationReplyMessage.send(getSender(), getProcessorId(), getReplySender(dm)); // Unless there was an exception thrown, this message handles sending the // response return false; }
this.region.clear(); } catch (Exception e) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM,
this.region.clear(); } catch (Exception e) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM,
this.region.clear(); } catch (Exception e) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_CONGLOM,