/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(true); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This method declares the storage manager as closed. From thereon, the instance can no longer be used. * It is important to close the manager as it also cleans up old copies of the managed files. */ public void close() { if (!open) return; open = false; if (readOnly) return; try { cleanup(); } catch (IOException e) { //Ignore and close. } if (instanceLocker != null) instanceLocker.release(); if (instanceFile != null) instanceFile.delete(); }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.exists()) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.isDirectory()) throw new IOException(Msg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(Msg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.isDirectory()) throw new IOException(Msg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(Msg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.isDirectory()) throw new IOException(Msg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(Msg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (openCleanup) cleanup(); if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.exists()) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); boolean locked = lock(wait); if (!locked && wait) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.isDirectory()) throw new IOException(Msg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(Msg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.isDirectory()) throw new IOException(Msg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(Msg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
/** * This methods opens the storage manager. * This method must be called before any operation on the storage manager. * @param wait indicates if the open operation must wait in case of contention on the lock file. * @throws IOException if an error occurred opening the storage manager */ public void open(boolean wait) throws IOException { if (!readOnly) { managerRoot.mkdirs(); if (!managerRoot.isDirectory()) throw new IOException(Msg.fileManager_cannotLock); if (openCleanup) cleanup(true); boolean locked = lock(wait); if (!locked && wait) throw new IOException(Msg.fileManager_cannotLock); } try { initializeInstanceFile(); updateTable(); open = true; } finally { release(); } }
cleanup(false); } catch (IOException ex) {
cleanup(false); } catch (IOException ex) {
cleanup(false); } catch (IOException ex) {
cleanup(false); } catch (IOException ex) {