static GfxdDDLMessage removePendingDDLMessage(final long ddlId) { synchronized (pendingDDLMessages) { return pendingDDLMessages.remove(ddlId); } }
public void removeStmtFromMap(long stmntId) { if (this.stmntMap != null) { synchronized (this.stmntMap) { this.stmntMap.remove(stmntId); } } }
private void removeWeakReferenceFromStmntMap(long stmntId, StmntWeakReference sRef) { assert Thread.holdsLock(this.stmntMap); if (this.stmntMap.get(stmntId) == sRef) { if (GemFireXDUtils.TraceQuery | GemFireXDUtils.TraceNCJ) { SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_QUERYDISTRIB, "GfxdConnectionWrapper#removeWeakReferenceFromStmntMap: " + "removing statement with id: " + stmntId); this.stmntMap.remove(stmntId); } } }
public void dropStreamContainer(long segmentId, long containerId) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT( segmentId == StreamContainerHandle.TEMPORARY_SEGMENT, "GemFireTransaction: Must be only used for temporary file creations"); } final FileStreamInputOutput container = (FileStreamInputOutput)this.tempCongloms .remove(containerId); if (SanityManager.DEBUG) { SanityManager.ASSERT(container != null, "GemFireTransaction: temporary sorted conglomerate must have been present " + containerId); } container.close(); }
public void closeStatement(long statementID) throws SQLException { Object stmt; synchronized (this.stmntMap) { stmt = this.stmntMap.remove(statementID); // also cleanup statement map cleanUpStmntMap(); } if (stmt != null) { EmbedStatement es = ((StmntWeakReference)stmt).get(); if (es != null) { final GemFireXDQueryObserver observer = GemFireXDQueryObserverHolder .getInstance(); es.close(); if (observer != null) { observer.afterClosingWrapperPreparedStatement(statementID, this.incomingConnId); } } } }
if (member.equals(pendingMessage.getSender())) { memberPendingMessages.add(pendingMessage); pendingDDLMessages.remove(ddlId);
this.tempCongloms.remove(conglomId);