/** * create a new entry event that will be used for conveying version information * and anything else of use while processing another event * @return the empty event object */ @Retained public static EntryEventImpl createVersionTagHolder(VersionTag tag) { EntryEventImpl result = new EntryEventImpl(); result.setVersionTag(tag); result.disallowOffHeapValues(); return result; }
public final DistributedRemoveAllOperation newRemoveAllOperation(Collection<?> keys, Object callbackArg) { if (keys == null) { throw new NullPointerException("The keys Collection passed to removeAll was null."); } if (keys.isEmpty()) { return null; } checkReadiness(); checkForLimitedOrNoAccess(); discoverJTA(); // Create a dummy event for the removeAll operation. Always create a // removeAll operation, even if there is no distribution, so that individual // events can be tracked and handed off to callbacks in postRemoveAll final EntryEventImpl event = EntryEventImpl.create(this, Operation.REMOVEALL_DESTROY, null, null/* newValue */, callbackArg, false, getMyId()); event.disallowOffHeapValues(); return new DistributedRemoveAllOperation(event, keys.size(), false); }
public final DistributedPutAllOperation newPutAllOperation(Map<?, ?> map, Object callbackArg) { if (map == null) { throw new NullPointerException(LocalizedStrings .AbstractRegion_MAP_CANNOT_BE_NULL.toLocalizedString()); } if (map.isEmpty()) { return null; } checkReadiness(); checkForLimitedOrNoAccess(); discoverJTA(); // Create a dummy event for the PutAll operation. Always create a // PutAll operation, even if there is no distribution, so that individual // events can be tracked and handed off to callbacks in postPutAll final EntryEventImpl event = EntryEventImpl.create(this, Operation.PUTALL_CREATE, null, null, callbackArg, true, getMyId()); event.disallowOffHeapValues(); DistributedPutAllOperation dpao = new DistributedPutAllOperation(event, map.size(), false); return dpao; } public final DistributedPutAllOperation newPutAllForPUTDmlOperation(Map<?, ?> map, Object callbackArg) {
public CacheLoadedDBSynchronizerMessage(LocalRegion rgn, Object key, Object value, boolean isTransactional) { super(rgn); this.transactional = isTransactional; EntryEventImpl event = this.getEntryEventImpl(); // TODO OFFHEAP: for now disallow off-heap. If it turns out value can be off-heap then we need to track the lifetime of CacheLoadedDBSynchronizerMessage. event.disallowOffHeapValues(); event.setKey(key); event.setNewValue(value); event.setCallbackArgument(GemFireXDUtils.wrapCallbackArgs(null, null, isTransactional, false, true, true, true, false, false)); }
public CacheLoadedDBSynchronizerMessage(LocalRegion rgn, Object key, Object value, boolean isTransactional) { super(rgn); this.transactional = isTransactional; EntryEventImpl event = this.getEntryEventImpl(); // TODO OFFHEAP: for now disallow off-heap. If it turns out value can be off-heap then we need to track the lifetime of CacheLoadedDBSynchronizerMessage. event.disallowOffHeapValues(); event.setKey(key); event.setNewValue(value); event.setCallbackArgument(GemFireXDUtils.wrapCallbackArgs(null, null, isTransactional, false, true, true, true, false, false)); }
public CacheLoadedDBSynchronizerMessage(LocalRegion rgn, Object key, Object value, boolean isTransactional) { super(rgn); this.transactional = isTransactional; EntryEventImpl event = this.getEntryEventImpl(); // TODO OFFHEAP: for now disallow off-heap. If it turns out value can be off-heap then we need to track the lifetime of CacheLoadedDBSynchronizerMessage. event.disallowOffHeapValues(); event.setKey(key); event.setNewValue(value); event.setCallbackArgument(GemFireXDUtils.wrapCallbackArgs(null, null, isTransactional, false, true, true, true, false, false)); }
public final DistributedPutAllOperation newPutAllOperation(Map<?, ?> map) { if (map == null) { throw new NullPointerException(LocalizedStrings .AbstractRegion_MAP_CANNOT_BE_NULL.toLocalizedString()); } if (map.isEmpty()) { return null; } checkReadiness(); checkForLimitedOrNoAccess(); final TXStateInterface tx = discoverJTA(); // Create a dummy event for the PutAll operation. Always create a // PutAll operation, even if there is no distribution, so that individual // events can be tracked and handed off to callbacks in postPutAll final EntryEventImpl event = EntryEventImpl.create(this, Operation.PUTALL_CREATE, null, null, null, true, getMyId()); event.disallowOffHeapValues(); event.setTXState(tx); return new DistributedPutAllOperation(this, event, map.size(), false); }
Operation.DESTROY, (lastDestroyedKey + 1) , null/* newValue */, null, false, cache.getMyId()); event.disallowOffHeapValues(); event.setTailKey(temp);
public BulkDBSynchronizerMessage(LocalRegion rgn, String dmlString, boolean skipListeners, GfxdCBArgForSynchPrms arg) throws StandardException { super(rgn); this.cbArg = arg; // setting Token.INVALID rather than null since old code relied on // this.cbArg being set there and need to make sure that we are no longer // relying on value carrying this.cbArg (i.e. we get a ClassCastException // somewhere otherwise) this.getEntryEventImpl().setNewValue(Token.INVALID); this.getEntryEventImpl().setCallbackArgument(this.cbArg); this.getEntryEventImpl().disallowOffHeapValues(); this.skipListeners = skipListeners; }
public BulkDBSynchronizerMessage(LocalRegion rgn, String dmlString, boolean skipListeners, GfxdCBArgForSynchPrms arg) throws StandardException { super(rgn); this.cbArg = arg; // setting Token.INVALID rather than null since old code relied on // this.cbArg being set there and need to make sure that we are no longer // relying on value carrying this.cbArg (i.e. we get a ClassCastException // somewhere otherwise) this.getEntryEventImpl().setNewValue(Token.INVALID); this.getEntryEventImpl().setCallbackArgument(this.cbArg); this.getEntryEventImpl().disallowOffHeapValues(); this.skipListeners = skipListeners; }
public BulkDBSynchronizerMessage(LocalRegion rgn, String dmlString, boolean skipListeners, GfxdCBArgForSynchPrms arg) throws StandardException { super(rgn); this.cbArg = arg; // setting Token.INVALID rather than null since old code relied on // this.cbArg being set there and need to make sure that we are no longer // relying on value carrying this.cbArg (i.e. we get a ClassCastException // somewhere otherwise) this.getEntryEventImpl().setNewValue(Token.INVALID); this.getEntryEventImpl().setCallbackArgument(this.cbArg); this.getEntryEventImpl().disallowOffHeapValues(); this.skipListeners = skipListeners; }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); this.transactional = (flags & IS_TRANSACTIONAL) != 0; try { // Read EventID EntryEventImpl event = this.getEntryEventImpl(); if (event != null) { event.disallowOffHeapValues(); event.setKey(DataSerializer.readObject(in)); event.setNewValue(DataSerializer.readObject(in)); event.setCallbackArgument(GemFireXDUtils.wrapCallbackArgs(null, null, this.transactional, false, true, true,true, false, false)); } } catch (IOException ioe) { throw ioe; } catch (Exception e) { throw new IOException(e); } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); this.transactional = (flags & IS_TRANSACTIONAL) != 0; try { // Read EventID EntryEventImpl event = this.getEntryEventImpl(); if (event != null) { event.disallowOffHeapValues(); event.setKey(DataSerializer.readObject(in)); event.setNewValue(DataSerializer.readObject(in)); event.setCallbackArgument(GemFireXDUtils.wrapCallbackArgs(null, null, this.transactional, false, true, true,true, false, false)); } } catch (IOException ioe) { throw ioe; } catch (Exception e) { throw new IOException(e); } }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); this.transactional = (flags & IS_TRANSACTIONAL) != 0; try { // Read EventID EntryEventImpl event = this.getEntryEventImpl(); if (event != null) { event.disallowOffHeapValues(); event.setKey(DataSerializer.readObject(in)); event.setNewValue(DataSerializer.readObject(in)); event.setCallbackArgument(GemFireXDUtils.wrapCallbackArgs(null, null, this.transactional, false, true, true,true, false, false)); } } catch (IOException ioe) { throw ioe; } catch (Exception e) { throw new IOException(e); } }
Operation.DESTROY, lastDestroyedKey == -1 ? 0 : lastDestroyedKey, null/* newValue */, null, false, cache.getMyId()); event.disallowOffHeapValues(); event.setTailKey(temp);
event.disallowOffHeapValues(); final LocalRegion[] owners = new LocalRegion[bulkFetchSize]; RowLocation rl;
event.disallowOffHeapValues(); final LocalRegion[] owners = new LocalRegion[bulkFetchSize]; RowLocation rl;
event.disallowOffHeapValues(); final LocalRegion[] owners = new LocalRegion[bulkFetchSize]; RowLocation rl;