/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(Msg.fileManager_notOpen); if (readOnly) throw new IOException(Msg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(Msg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(Msg.fileManager_notOpen); if (readOnly) throw new IOException(Msg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(Msg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(EclipseAdaptorMsg.fileManager_notOpen); if (readOnly) throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(Msg.fileManager_notOpen); if (readOnly) throw new IOException(Msg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(Msg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(EclipseAdaptorMsg.fileManager_notOpen); if (readOnly) throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(Msg.fileManager_notOpen); if (readOnly) throw new IOException(Msg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(Msg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(Msg.fileManager_notOpen); if (readOnly) throw new IOException(Msg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(Msg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } finally { release(); } }
/** * Removes the given managed file from management by this storage manager. * * @param managedFile the managed file to remove * @throws IOException if an error occured removing the managed file */ public void remove(String managedFile) throws IOException { if (!open) throw new IOException(Msg.fileManager_notOpen); if (readOnly) throw new IOException(Msg.fileManager_illegalInReadOnlyMode); // The removal needs to be done eagerly, so the value is effectively removed from the disktable. // Otherwise, an updateTable() caused by an update(,) could cause the file to readded to the local table. if (!lock(true)) throw new IOException(Msg.fileManager_cannotLock); try { updateTable(); table.remove(managedFile); save(); } 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.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 (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(); } }
/** * 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(); } }