
public abstract class OSBTreeCollectionManagerAbstract extends Object implements OCloseable, OSBTreeCollectionManager, OOrientStartupListener, OOrientShutdownListener
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OSBTreeCollectionManagerAbstract.CacheKey |
protected static class |
OSBTreeCollectionManagerAbstract.SBTreeBonsaiContainer |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_EXTENSION |
static String |
FILE_NAME_PREFIX |
protected com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap<OSBTreeCollectionManagerAbstract.CacheKey,OSBTreeCollectionManagerAbstract.SBTreeBonsaiContainer> |
treeCache |
| Constructor and Description |
|---|
OSBTreeCollectionManagerAbstract(OStorage storage) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangedIds, clearChangedIds, clearPendingCollections, listenForChanges, updateCollectionPointerpublic static final String FILE_NAME_PREFIX
public static final String DEFAULT_EXTENSION
protected final com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap<OSBTreeCollectionManagerAbstract.CacheKey,OSBTreeCollectionManagerAbstract.SBTreeBonsaiContainer> treeCache
public OSBTreeCollectionManagerAbstract(OStorage storage)
public static String generateLockName(int clusterId)
clusterId - the cluster ID to generate the lock name for.public void onStartup()
onStartup in interface OOrientStartupListenerpublic void onShutdown()
onShutdown in interface OOrientShutdownListenerpublic OSBTreeBonsai<OIdentifiable,Integer> createAndLoadTree(OAtomicOperation atomicOperation, int clusterId) throws IOException
createAndLoadTree in interface OSBTreeCollectionManagerIOExceptionpublic OBonsaiCollectionPointer createSBTree(OAtomicOperation atomicOperation, int clusterId, UUID ownerUUID) throws IOException
createSBTree in interface OSBTreeCollectionManagerIOExceptionpublic OSBTreeBonsai<OIdentifiable,Integer> loadSBTree(OBonsaiCollectionPointer collectionPointer)
loadSBTree in interface OSBTreeCollectionManagerpublic void releaseSBTree(OBonsaiCollectionPointer collectionPointer)
releaseSBTree in interface OSBTreeCollectionManagerpublic void delete(OBonsaiCollectionPointer collectionPointer)
delete in interface OSBTreeCollectionManagerpublic void close()
OCloseableclose in interface OCloseablepublic void clear()
protected abstract OSBTreeBonsai<OIdentifiable,Integer> createTree(OAtomicOperation atomicOperation, int clusterId) throws IOException
IOExceptionprotected abstract OSBTreeBonsai<OIdentifiable,Integer> loadTree(OBonsaiCollectionPointer collectionPointer)
protected Object treesSubsetLock(OSBTreeCollectionManagerAbstract.CacheKey cacheKey)
Copyright © 2009–2025 OrientDB. All rights reserved.