public class OSBTreeCollectionManagerShared extends OSBTreeCollectionManagerAbstract implements OOrientStartupListener, OOrientShutdownListener
OSBTreeCollectionManagerAbstract.CacheKey, OSBTreeCollectionManagerAbstract.SBTreeBonsaiContainer
DEFAULT_EXTENSION, FILE_NAME_PREFIX, treeCache
Constructor and Description |
---|
OSBTreeCollectionManagerShared(OAbstractPaginatedStorage storage) |
clear, close, generateLockName, onShutdown, onStartup, releaseSBTree, treesSubsetLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
onShutdown
public OSBTreeCollectionManagerShared(OAbstractPaginatedStorage storage)
public void prohibitAccess()
public OSBTreeBonsai<OIdentifiable,Integer> createAndLoadTree(OAtomicOperation atomicOperation, int clusterId) throws IOException
createAndLoadTree
in interface OSBTreeCollectionManager
createAndLoadTree
in class OSBTreeCollectionManagerAbstract
IOException
public OSBTreeBonsai<OIdentifiable,Integer> loadSBTree(OBonsaiCollectionPointer collectionPointer)
loadSBTree
in interface OSBTreeCollectionManager
loadSBTree
in class OSBTreeCollectionManagerAbstract
public void delete(OBonsaiCollectionPointer collectionPointer)
delete
in interface OSBTreeCollectionManager
delete
in class OSBTreeCollectionManagerAbstract
public void createComponent(OAtomicOperation atomicOperation, int clusterId)
public long createComponent(OAtomicOperation atomicOperation, String fileName)
protected OSBTreeBonsaiLocal<OIdentifiable,Integer> createEdgeTree(OAtomicOperation atomicOperation, int clusterId) throws IOException
createEdgeTree
in class OSBTreeCollectionManagerAbstract
IOException
public OBonsaiCollectionPointer createTree(OAtomicOperation atomicOperation, String fileName, int pageIndex, int pageOffset) throws IOException
IOException
public void deleteComponentByClusterId(OAtomicOperation atomicOperation, int clusterId)
public void deleteComponentByFileId(OAtomicOperation atomicOperation, long fileId)
public OBonsaiCollectionPointer createSBTree(int clusterId, OAtomicOperation atomicOperation, UUID ownerUUID) throws IOException
createSBTree
in interface OSBTreeCollectionManager
createSBTree
in class OSBTreeCollectionManagerAbstract
IOException
protected OSBTreeBonsai<OIdentifiable,Integer> loadTree(OBonsaiCollectionPointer collectionPointer)
loadTree
in class OSBTreeCollectionManagerAbstract
public UUID listenForChanges(ORidBag collection)
listenForChanges
in interface OSBTreeCollectionManager
public void updateCollectionPointer(UUID uuid, OBonsaiCollectionPointer pointer)
updateCollectionPointer
in interface OSBTreeCollectionManager
public void clearPendingCollections()
clearPendingCollections
in interface OSBTreeCollectionManager
public Map<UUID,OBonsaiCollectionPointer> changedIds()
changedIds
in interface OSBTreeCollectionManager
public void clearChangedIds()
clearChangedIds
in interface OSBTreeCollectionManager
public boolean tryDelete(OAtomicOperation atomicOperation, OBonsaiCollectionPointer collectionPointer, long delay)
Copyright © 2009–2020 OrientDB. All rights reserved.