final void initializeEvent(LocalRegion rgn, EventID eventId, DistributedMember member) { this.event = EntryEventImpl.create(rgn, getOperation(), null, null, null, true, member); this.event.setEventId(eventId); // OFFHEAP: callers make sure event only has on heap values. }
final void initializeEvent(LocalRegion rgn, EventID eventId, DistributedMember member) { this.event = EntryEventImpl.create(rgn, getOperation(), null, null, null, true, member); this.event.setEventId(eventId); // OFFHEAP: callers make sure event only has on heap values. }
/** * Creates and returns an EntryEventImpl. Generates and assigns a bucket id to the * EntryEventImpl if the region parameter is a PartitionedRegion. */ @Retained public static EntryEventImpl create(LocalRegion region, Operation op, Object key, @Retained(ENTRY_EVENT_NEW_VALUE) Object newValue, Object callbackArgument, boolean originRemote, DistributedMember distributedMember) { return create(region,op,key,newValue,callbackArgument,originRemote,distributedMember,true,true); }
final void initializeEvent(LocalRegion rgn, EventID eventId, DistributedMember member) { this.event = EntryEventImpl.create(rgn, getOperation(), null, null, null, true, member); this.event.setEventId(eventId); // OFFHEAP: callers make sure event only has on heap values. }
/** * Creates and returns an EntryEventImpl. Generates and assigns a bucket id to the * EntryEventImpl if the region parameter is a PartitionedRegion. */ @Retained public static EntryEventImpl create(LocalRegion region, Operation op, Object key, @Retained(ENTRY_EVENT_NEW_VALUE) Object newValue, Object callbackArgument, boolean originRemote, DistributedMember distributedMember) { return create(region,op,key,newValue,callbackArgument,originRemote,distributedMember,true,true); }
@Override EntryEventImpl createEntryEvent(DistributedRegion rgn) { EntryEventImpl event = EntryEventImpl.create(rgn, getOperation(), this.key, null, /* newvalue */ this.callbackArg, true /* originRemote */, getSender(), true/* generateCallbacks */ ); event.setContext(this.context); return event; }
@Override EntryEventImpl createEntryEvent(DistributedRegion rgn) { EntryEventImpl event = EntryEventImpl.create(rgn, getOperation(), this.key, null, /* newvalue */ this.callbackArg, true /* originRemote */, getSender(), true/* generateCallbacks */ ); event.setContext(this.context); return event; }
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() {
EntryEventImpl createEntryEvent(DistributedRegion rgn) { EntryEventImpl event = EntryEventImpl.create(rgn, getOperation(), this.key, null, this.callbackArg, true, getSender()); // event.setNewEventId(); Don't set the event here... setOldValueInEvent(event); event.setTailKey(this.tailKey); return event; }
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() {
EntryEventImpl createEntryEvent(DistributedRegion rgn) { EntryEventImpl event = EntryEventImpl.create(rgn, getOperation(), this.key, null, this.callbackArg, true, getSender()); // event.setNewEventId(); Don't set the event here... setOldValueInEvent(event); event.setTailKey(this.tailKey); return event; }
EntryEventImpl createEntryEvent(DistributedRegion rgn) { EntryEventImpl event = EntryEventImpl.create(rgn, getOperation(), this.key, null, this.callbackArg, true, getSender()); // event.setNewEventId(); Don't set the event here... setOldValueInEvent(event); event.setTailKey(this.tailKey); 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()); }
EntryEventImpl createEntryEvent(DistributedRegion rgn) { EntryEventImpl event = EntryEventImpl.create(rgn, getOperation(), this.key, null, this.callbackArg, true, getSender()); // event.setNewEventId(); Don't set the event here... setOldValueInEvent(event); event.setLoadedFromHDFS(this.isLoadedFromHDFS); event.setTailKey(this.tailKey); return event; }
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 newDestroyEntryEvent(Object key, Object aCallbackArgument) { validateKey(key); validateCallbackArg(aCallbackArgument); checkReadiness(); checkForLimitedOrNoAccess(); return EntryEventImpl.create(this, Operation.DESTROY, key, null/* newValue */, aCallbackArgument, false, getMyId()); }
public EntryEventImpl getFirstEvent(PartitionedRegion r) { if (putAllPRDataSize == 0) { return null; } PutAllEntryData ped = putAllPRData[0]; EntryEventImpl ev = EntryEventImpl.create(r, ped.getOp(),ped.getKey(),ped.getValue()/* value */,ped.getCallbackArg(), false /* originRemote */, getSender(), true/* generate Callbacks */, ped.getEventID()); return ev; }
private HDFSGatewayEventImpl getNewEvent(Object key, Object value, long seq) throws Exception { EntryEventImpl evt = EntryEventImpl.create(region, Operation.CREATE, key, value, null, false, (DistributedMember) cache.getMyId()); evt.setEventId(new EventID(cache.getDistributedSystem())); HDFSGatewayEventImpl event = new HDFSGatewayEventImpl(EnumListenerEvent.AFTER_CREATE, evt, true, 0, true); event.setShadowKey(seq); return event; } }
private HDFSGatewayEventImpl getNewEvent(Object key, Object value, Region r1, int bid, int tailKey) throws Exception { EntryEventImpl ev1 = EntryEventImpl.create((LocalRegion)r1, Operation.CREATE, key, value, null, false, (DistributedMember)c.getMyId()); ev1.setEventId(new EventID(this.c.getDistributedSystem())); HDFSGatewayEventImpl event = null; event = new HDFSGatewayEventImpl(EnumListenerEvent.AFTER_CREATE, ev1, true, bid, true); event.setShadowKey((long)tailKey); return event; }