public class OSBTreeCollectionManagerShared extends OSBTreeCollectionManagerAbstract implements OOrientStartupListener, OOrientShutdownListener
DEFAULT_EXTENSION, FILE_NAME_PREFIX
Constructor and Description |
---|
OSBTreeCollectionManagerShared(OAbstractPaginatedStorage storage) |
Modifier and Type | Method and Description |
---|---|
Map<UUID,OBonsaiCollectionPointer> |
changedIds() |
void |
clearChangedIds() |
void |
clearPendingCollections() |
OSBTreeBonsai<OIdentifiable,Integer> |
createAndLoadTree(int clusterId) |
OBonsaiCollectionPointer |
createSBTree(int clusterId,
UUID ownerUUID) |
protected OSBTreeBonsaiLocal<OIdentifiable,Integer> |
createTree(int clusterId) |
void |
delete(OBonsaiCollectionPointer collectionPointer) |
UUID |
listenForChanges(ORidBag collection)
Change UUID to null to prevent its serialization to disk.
|
OSBTreeBonsai<OIdentifiable,Integer> |
loadSBTree(OBonsaiCollectionPointer collectionPointer) |
protected OSBTreeBonsai<OIdentifiable,Integer> |
loadTree(OBonsaiCollectionPointer collectionPointer) |
void |
onShutdown() |
void |
onStartup() |
void |
prohibitAccess()
Once this method is called any attempt to load/create/delete b-tree will be resulted in exception thrown.
|
void |
updateCollectionPointer(UUID uuid,
OBonsaiCollectionPointer pointer) |
clear, close, generateLockName, releaseSBTree
public OSBTreeCollectionManagerShared(OAbstractPaginatedStorage storage)
public void onShutdown()
onShutdown
in interface OOrientShutdownListener
onShutdown
in class OSBTreeCollectionManagerAbstract
public void onStartup()
onStartup
in interface OOrientStartupListener
onStartup
in class OSBTreeCollectionManagerAbstract
public void prohibitAccess()
public OSBTreeBonsai<OIdentifiable,Integer> createAndLoadTree(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 OBonsaiCollectionPointer createSBTree(int clusterId, UUID ownerUUID) throws IOException
createSBTree
in interface OSBTreeCollectionManager
createSBTree
in class OSBTreeCollectionManagerAbstract
IOException
protected OSBTreeBonsaiLocal<OIdentifiable,Integer> createTree(int clusterId) throws IOException
createTree
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
Copyright © 2009–2019 OrientDB. All rights reserved.