@Override public boolean isPending() { RegionEntry re = this.re; if(re == null) { return false; } if (re.isDestroyedOrRemoved()) { return false; } ExpirationAction action = getAction(); if (action == null) { return false; } if((action.isInvalidate() || action.isLocalInvalidate()) && re.isInvalid()) { return false; } return true; }
@Override public boolean isPending() { RegionEntry re = this.re; if(re == null) { return false; } if (re.isDestroyedOrRemoved()) { return false; } ExpirationAction action = getAction(); if (action == null) { return false; } if((action.isInvalidate() || action.isLocalInvalidate()) && re.isInvalid()) { return false; } return true; }
/** * @param add * true if adding to index, false if removing */ public void evaluate(RegionEntry target, boolean add) throws IMQException { assert !target.isInvalid() : "value in RegionEntry should not be INVALID"; ExecutionContext context = null; try { context = createExecutionContext(target); doNestedIterations(0, add, context); } catch (IMQException imqe) { throw imqe; } catch (Exception e) { throw new IMQException(e); } finally { if (context != null) { context.popScope(); } } }
/** * Removing the existing indexed value requires the current value in the cache, * that is the one prior to applying the operation. * @param op * @param entry the RegionEntry that contains the value prior to applying the op */ private void txRemoveOldIndexEntry(Operation op, RegionEntry entry) { if ((op.isUpdate() && !entry.isInvalid()) || op.isInvalidate() || op.isDestroy()) { IndexManager idxManager = _getOwner().getIndexManager(); if (idxManager != null) { try { idxManager.updateIndexes(entry, IndexManager.REMOVE_ENTRY, op.isUpdate() ? IndexProtocol.BEFORE_UPDATE_OP : IndexProtocol.OTHER_OP); } catch (QueryException e) { throw new IndexMaintenanceException(e); } } } }
/** * Removing the existing indexed value requires the current value in the cache, * that is the one prior to applying the operation. * @param op * @param entry the RegionEntry that contains the value prior to applying the op */ private void txRemoveOldIndexEntry(Operation op, RegionEntry entry) { if ((op.isUpdate() && !entry.isInvalid()) || op.isInvalidate() || op.isDestroy()) { IndexManager idxManager = _getOwner().getIndexManager(); if (idxManager != null) { try { idxManager.updateIndexes(entry, IndexManager.REMOVE_ENTRY, op.isUpdate() ? IndexProtocol.BEFORE_UPDATE_OP : IndexProtocol.OTHER_OP); } catch (QueryException e) { throw new IndexMaintenanceException(e); } } } }
if (entry != null) { synchronized(entry) { if (entry.isInvalid()) { VersionStamp stamp = entry.getVersionStamp(); if (stamp == null || event.getVersionTag() == null) {
if (entry != null) { synchronized(entry) { if (entry.isInvalid()) { VersionStamp stamp = entry.getVersionStamp(); if (stamp == null || event.getVersionTag() == null) {
assert !target.isInvalid() : "value in RegionEntry should not be INVALID"; DummyQRegion dQRegion = new DummyQRegion(rgn); dQRegion.setEntry(target);
assert !target.isInvalid() : "value in RegionEntry should not be INVALID"; DummyQRegion dQRegion = new DummyQRegion(rgn); dQRegion.setEntry(target);
if (!entry.isInvalid()) { this.indexManager.updateIndexes(entry, isNewKey ? IndexManager.ADD_ENTRY :
if (!entry.isInvalid()) { this.indexManager.updateIndexes(entry, isNewKey ? IndexManager.ADD_ENTRY :
if ((this.op.isUpdate() && !reentry.isInvalid()) || this.op.isInvalidate()) { IndexManager idxManager = IndexUtils.getIndexManager(this.region, false); if (idxManager != null) {
if ((this.op.isUpdate() && !reentry.isInvalid()) || this.op.isInvalidate()) { IndexManager idxManager = IndexUtils.getIndexManager(this.region, false); if (idxManager != null) {