/** * 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(); } }
save(); //save only if no errors } finally { release();
save(); //save only if no errors } finally { release();
save(); //save only if no errors } finally { release();
save(); //save only if no errors } finally { release();