Package org.exist.collections

Examples of org.exist.collections.Collection.release()


            LOG.error(ex.getMessage());

        } finally {
            // Clean up resources
            if (collection != null) {
                collection.release(Lock.READ_LOCK);
            }
        }

        return paths;
View Full Code Here


            if(resource != null){
                resource.getUpdateLock().release(Lock.READ_LOCK);
            }
           
            if(collection != null){
                collection.release(Lock.READ_LOCK);
            }
           
            pool.release(broker);
           
            LOG.debug("End document download");
View Full Code Here

//                LOG.warn("Child collection " + childName + " not found");
            } else {
                try {
                  deleteCollectionRecursive(broker, child);
                } finally {
                    child.release(Lock.NO_LOCK);
                }
            }
        }

  }
View Full Code Here

        matching = md.matchDocuments(KEY1, VALUE2);
        assertEquals(0, matching.size());

        } finally {
            if(col1 != null) {
                col1.release(Lock.READ_LOCK);
            }
            if(broker != null) {
                pool.release(broker);
            }
        }
View Full Code Here

        assertEquals(1, matching.size());
        assertEquals(doc4uri, matching.get(0).getURI());

        } finally {
            if(parentCol != null) {
                parentCol.release(Lock.WRITE_LOCK);
            }
            if(col1 != null) {
                col1.release(Lock.WRITE_LOCK);
            }
            if(broker != null) {
View Full Code Here

            matching = md.matchDocuments(KEY2, VALUE1);
            assertEquals(0, matching.size());

        } finally {
            if(col1 != null) {
                col1.release(Lock.WRITE_LOCK);
            }
            if(broker != null) {
                pool.release(broker);
            }
        }
View Full Code Here

        assertEquals(1, matching.size());
        assertEquals(doc6uri, matching.get(0).getURI());

        } finally {
            if(col1 != null) {
                col1.release(Lock.WRITE_LOCK);
            }
            if(broker != null) {
                pool.release(broker);
            }
        }
View Full Code Here

        matching = md.matchDocuments(KEY2, VALUE1);
        assertEquals(0, matching.size());

        } finally {
            if(col1 != null) {
                col1.release(Lock.WRITE_LOCK);
            }
            if(broker != null) {
                pool.release(broker);
            }
        }
View Full Code Here

          txnManager.abort(txn);
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            if(col2 != null) {
                col2.release(Lock.WRITE_LOCK);
            }
            if(col1 != null) {
                col1.release(Lock.WRITE_LOCK);
            }
            txnManager.close(txn);
View Full Code Here

            transact.abort(transaction);
            throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, e.getMessage(), e);
        } finally {
            transact.close(transaction);
            if(collection != null) {
                collection.release(Lock.WRITE_LOCK);
            }
            brokerPool.release(broker);
            brokerPool.setSubject(subject);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.