/** * 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(); } }