/** * Used to bootstrap txState. * @param key * @return localMember for local and distributedRegions, * member with parimary bucket for partitionedRegions */ public DistributedMember getOwnerForKey(KeyInfo key) { return getMyId(); }
public void handleMarker() { RegionEventImpl event = new RegionEventImpl(this, Operation.MARKER, null, false, getMyId(), false /* generate EventID */); dispatchListenerEvent(EnumListenerEvent.AFTER_REGION_LIVE, event); }
public void handleMarker() { //LogWriterI18n logger = getCache().getLoggerI18n(); RegionEventImpl event = new RegionEventImpl(this, Operation.MARKER, null, false, getMyId(), false /* generate EventID */); dispatchListenerEvent(EnumListenerEvent.AFTER_REGION_LIVE, event); }
@Override protected final boolean localInvalidate() { LocalRegion lr = getLocalRegion(); if (lr.regionInvalid) return false; RegionEventImpl event = new RegionEventImpl(lr, Operation.REGION_EXPIRE_LOCAL_INVALIDATE, null, false, lr.getMyId()); lr.basicInvalidateRegion(event); return true; }
/** * Creates a local tx entry event */ TxEntryEventImpl(LocalRegion r, Object key) { //TODO:ASIF :Check if the eventID should be created. Currently not // creating it super(r, getNearSideOperation(), key, getNearSidePendingValue(),TXEntryState.this.getCallbackArgument(), false, r.getMyId() , true/* generateCallbacks */, true /*initializeId*/); }
@Override protected final boolean invalidate() throws TimeoutException { LocalRegion lr = getLocalRegion(); if (lr.regionInvalid) { return false; } RegionEventImpl event = new RegionEventImpl(lr, Operation.REGION_EXPIRE_INVALIDATE, null, false, lr.getMyId()); lr.basicInvalidateRegion(event); return true; }
@Override protected final boolean destroy(boolean isPending) throws CacheException { LocalRegion lr = getLocalRegion(); RegionEventImpl event = new RegionEventImpl(lr, Operation.REGION_EXPIRE_DESTROY, null, false, lr.getMyId(), lr.generateEventID() /* generate EventID */); lr.basicDestroyRegion(event, true); return true; }
@Override protected final boolean localDestroy() throws CacheException { LocalRegion lr = getLocalRegion(); RegionEventImpl event = new RegionEventImpl(lr, Operation.REGION_EXPIRE_LOCAL_DESTROY, null, false, lr.getMyId(), lr.generateEventID() /* generate EventID */); lr.basicDestroyRegion(event, false); return true; }
public void destroyRecoveredEntry(Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.LOCAL_DESTROY, key, null, null, false, getMyId(), false); try { event.inhibitCacheListenerNotification(true); mapDestroy(event, true, false, null, false, true); } finally { event.release(); } } public boolean lruLimitExceeded() {
public void destroyRecoveredEntry(Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.LOCAL_DESTROY, key, null, null, false, getMyId(), false); try { event.inhibitCacheListenerNotification(true); mapDestroy(event, true, false, null, false, true); } finally { event.release(); } } public boolean lruLimitExceeded() {
public final EntryEventImpl newCreateEntryEvent(Object key, Object value, Object aCallbackArgument) { validateArguments(key, value, aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); return EntryEventImpl.create(this, Operation.CREATE, key, value, aCallbackArgument, false, getMyId()) /* to distinguish genuine create */.setCreate(true); }
public final EntryEventImpl newDestroyEntryEvent(Object key, Object aCallbackArgument) { validateKey(key); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); return EntryEventImpl.create(this, Operation.DESTROY, key, null/* newValue */, aCallbackArgument, false, getMyId()); }
protected EntryEventImpl generateCustomEvictDestroyEvent(final Object key) { EntryEventImpl event = EntryEventImpl.create( this, Operation.CUSTOM_EVICT_DESTROY, key, null/* newValue */, null, false, getMyId()); // Fix for bug#36963 if (generateEventID()) { event.setNewEventId(cache.getDistributedSystem()); } event.setFetchFromHDFS(false); return event; }
public final EntryEventImpl newCreateEntryEvent(Object key, Object value, Object aCallbackArgument) { validateArguments(key, value, aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); return EntryEventImpl.create(this, Operation.CREATE, key, value, aCallbackArgument, false, getMyId()) /* to distinguish genuine create */.setCreate(true); }
public final EntryEventImpl newDestroyEntryEvent(Object key, Object aCallbackArgument) { validateKey(key); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); return EntryEventImpl.create(this, Operation.DESTROY, key, null/* newValue */, aCallbackArgument, false, getMyId()); }
public void localInvalidateRegion(Object aCallbackArgument) { getDataView().checkSupportsRegionInvalidate(); checkReadiness(); checkForNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_LOCAL_INVALIDATE, aCallbackArgument, false, getMyId()); basicInvalidateRegion(event); }
public void destroyRegion(Object aCallbackArgument) throws CacheWriterException, TimeoutException { getDataView().checkSupportsRegionDestroy(); checkForLimitedOrNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_DESTROY, aCallbackArgument, false, getMyId(), generateEventID()); basicDestroyRegion(event, true); }
public void destroyRegion(Object aCallbackArgument) throws CacheWriterException, TimeoutException { getDataView().checkSupportsRegionDestroy(); checkForLimitedOrNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_DESTROY, aCallbackArgument, false, getMyId(), generateEventID()); basicDestroyRegion(event, true); }
public void invalidateRegion(Object aCallbackArgument) throws TimeoutException { getDataView().checkSupportsRegionInvalidate(); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_INVALIDATE, aCallbackArgument, false, getMyId(), generateEventID()); basicInvalidateRegion(event); }
public void invalidateRegion(Object aCallbackArgument) throws TimeoutException { getDataView().checkSupportsRegionInvalidate(); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_INVALIDATE, aCallbackArgument, false, getMyId(), generateEventID()); basicInvalidateRegion(event); }