110111112113114115116117
this.fileId = diskCache.openFile(name + dataFileExtension); this.name = name; initAfterCreate(); } catch (IOException e) { throw new OSBTreeException("Error creation of sbtree with name" + name, e); } }
136137138139140141142143144145
this.fileId = fileId; this.name = resolveTreeName(fileId); initAfterCreate(); } catch (IOException e) { throw new OSBTreeException("Error creation of sbtree with name" + name, e); } finally { releaseExclusiveLock(); } }
173174175176177178179180
try { super.endAtomicOperation(true); } catch (IOException e1) { OLogManager.instance().error(this, "Error during sbtree data rollback", e1); } throw new OSBTreeException("Error creation of sbtree with name" + name, e); } }
240241242243244245246247248249
} finally { diskCache.release(keyBucketCacheEntry); } } catch (IOException e) { throw new OSBTreeException("Error during retrieving of sbtree with name " + name, e); } finally { releaseSharedLock(); } }
307308309310311312313314315316
endAtomicOperation(false); return result; } catch (Throwable e) { rollback(); throw new OSBTreeException("Error during index update with key " + key + " and value " + value, e); } finally { releaseExclusiveLock(); } }
326327328329330331332333334335
public void close(boolean flush) { acquireExclusiveLock(); try { diskCache.closeFile(fileId, flush); } catch (IOException e) { throw new OSBTreeException("Error during close of index " + name, e); } finally { releaseExclusiveLock(); } }
374375376377378379380381382383
endAtomicOperation(false); } catch (Throwable e) { rollback(); throw new OSBTreeException("Error during clear of sbtree with name " + name, e); } finally { releaseExclusiveLock(); } }
473474475476477478479480481482
endAtomicOperation(false); } catch (Throwable e) { rollback(); throw new OSBTreeException("Error during delete of sbtree with name " + name, e); } finally { releaseExclusiveLock(); } }
508509510511512513514515516517
diskCache.release(rootCacheEntry); } initDurableComponent(storageLocal); } catch (IOException e) { throw new OSBTreeException("Exception during loading of sbtree " + fileId, e); } finally { releaseExclusiveLock(); } }
549550551552553554555556557558
return rootBucket.getTreeSize(); } finally { diskCache.release(rootCacheEntry); } } catch (IOException e) { throw new OSBTreeException("Error during retrieving of size of index " + name); } finally { releaseSharedLock(); } }