/** * Acquire a lock on the index file. Method will not return until the lock * is acquired or an error is thrown. * * @throws IOException if any errors occur. */ private void lockIndex() throws IOException { //log.debug(" * Locking Index : " + getId()); indexLock.getLock(); //log.debug(" * Index locked : " + getId()); }
private void lockManifest() { try { // log.debug(" * Locking Manifest : " + getId()); manifestLock.getLock(); // log.debug(" * Manifest locked : " + getId()); } catch (IOException ex) { log.error("Failed acquiring manifest lock : ", ex); } }