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, wait
changedIds, clearChangedIds, clearPendingCollections, listenForChanges, updateCollectionPointer
public 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 OOrientStartupListener
public void onShutdown()
onShutdown
in interface OOrientShutdownListener
public OSBTreeBonsai<OIdentifiable,Integer> createAndLoadTree(OAtomicOperation atomicOperation, int clusterId) throws IOException
createAndLoadTree
in interface OSBTreeCollectionManager
IOException
public OBonsaiCollectionPointer createSBTree(int clusterId, OAtomicOperation atomicOperation, UUID ownerUUID) throws IOException
createSBTree
in interface OSBTreeCollectionManager
IOException
public OSBTreeBonsai<OIdentifiable,Integer> loadSBTree(OBonsaiCollectionPointer collectionPointer)
loadSBTree
in interface OSBTreeCollectionManager
public void releaseSBTree(OBonsaiCollectionPointer collectionPointer)
releaseSBTree
in interface OSBTreeCollectionManager
public void delete(OBonsaiCollectionPointer collectionPointer)
delete
in interface OSBTreeCollectionManager
public void close()
OCloseable
close
in interface OCloseable
public void clear()
protected abstract OSBTreeBonsai<OIdentifiable,Integer> createEdgeTree(OAtomicOperation atomicOperation, int clusterId) throws IOException
IOException
protected abstract OSBTreeBonsai<OIdentifiable,Integer> loadTree(OBonsaiCollectionPointer collectionPointer)
protected Object treesSubsetLock(OSBTreeCollectionManagerAbstract.CacheKey cacheKey)
Copyright © 2009–2020 OrientDB. All rights reserved.