Package org.exist.storage

Examples of org.exist.storage.BrokerPool.release()


        } catch (final Exception e) {
      return false;
     
    } finally {
      if (db != null)
        {db.release(broker);}
    }
     
      return true;
    }
View Full Code Here


    } catch (final Exception e) {
      return false;
   
    } finally {
      if (db != null)
        {db.release(broker);}
    }
     
      return true;
    }
View Full Code Here

            if(source != null) {source.release(Lock.WRITE_LOCK);}
            if(destination != null) {destination.release(Lock.WRITE_LOCK);}
          }
        } finally {
          if (db != null)
            {db.release( broker );}
        }
    }
   
    public boolean renameTo(File dest) {
     
View Full Code Here

                if(source != null) {source.release(Lock.WRITE_LOCK);}
                if(destination != null) {destination.release(Lock.WRITE_LOCK);}
            }
        } finally {
            if (db != null)
                {db.release( broker );}
        }
    }
   
    private synchronized File serialize(final DBBroker broker, final DocumentImpl doc) throws IOException {
      if (file != null)
View Full Code Here

            e.printStackTrace();
            if (txn != null) {tm.abort(txn);}
      } finally {
            tm.close(txn);
          if (db != null)
              {db.release( broker );}
      }
    }

    private void moveResource(DBBroker broker, Txn txn, DocumentImpl doc, Collection source, Collection destination, XmldbURI newName) throws PermissionDeniedException, LockException, IOException, SAXException, EXistException {
       
View Full Code Here

          } finally {
                tm.close(txn);
            }
        } finally {
          if (db != null)
            {db.release(broker);}

            resource = null;
            collection = null;
            initialized = false;
        }
View Full Code Here

    } catch (final Exception e) {
      return false;
     
    } finally {
      if (db != null)
        {db.release(broker);}
    }
   
    return true;
    }
View Full Code Here

                resource.getUpdateLock().release(Lock.READ_LOCK);
            }

            // Release the DBBroker
            if(pool != null && broker != null) {
                pool.release(broker);
            }
        }

    }
View Full Code Here

        if (resource != null)
          {resource.getUpdateLock().release(Lock.READ_LOCK);}
      }
    } finally {
      if (db != null)
        {db.release(broker);}
    }
   
    initialized = true;
    }
   
View Full Code Here

      return broker.getSubject();
    } catch (final EXistException e) {
      throw new IOException(e);
    } finally {
      if (db != null)
        {db.release(broker);}
    }
    }
   
    public Reader getReader() throws IOException {
      final InputStream is = getConnection().getInputStream();
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.