
public abstract class OSBTreeCollectionManagerAbstract extends Object implements OCloseable, OSBTreeCollectionManager, OOrientStartupListener, OOrientShutdownListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
cacheMaxSize |
static String |
DEFAULT_EXTENSION |
protected int |
evictionThreshold |
static String |
FILE_NAME_PREFIX |
protected Object[] |
locks |
protected int |
mask |
protected int |
shift |
| Constructor and Description |
|---|
OSBTreeCollectionManagerAbstract(OStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close()
Closes resources inside of call of OStorage#close().
|
OSBTreeBonsai<OIdentifiable,Integer> |
createAndLoadTree(int clusterId) |
OBonsaiCollectionPointer |
createSBTree(int clusterId,
UUID ownerUUID) |
protected abstract OSBTreeBonsai<OIdentifiable,Integer> |
createTree(int clusterId) |
void |
delete(OBonsaiCollectionPointer collectionPointer) |
static String |
generateLockName(int clusterId)
Generates a lock name for the given cluster ID.
|
OSBTreeBonsai<OIdentifiable,Integer> |
loadSBTree(OBonsaiCollectionPointer collectionPointer) |
protected abstract OSBTreeBonsai<OIdentifiable,Integer> |
loadTree(OBonsaiCollectionPointer collectionPointer) |
void |
onShutdown() |
void |
onStartup() |
void |
releaseSBTree(OBonsaiCollectionPointer collectionPointer) |
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 int evictionThreshold
protected final int cacheMaxSize
protected final int shift
protected final int mask
protected final Object[] locks
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(int clusterId)
createAndLoadTree in interface OSBTreeCollectionManagerpublic OBonsaiCollectionPointer createSBTree(int clusterId, UUID ownerUUID)
createSBTree in interface OSBTreeCollectionManagerpublic 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(int clusterId)
protected abstract OSBTreeBonsai<OIdentifiable,Integer> loadTree(OBonsaiCollectionPointer collectionPointer)
Copyright © 2009–2025 OrientDB. All rights reserved.