Class OSBTreeCollectionManagerShared
java.lang.Object
com.orientechnologies.orient.core.storage.ridbag.sbtree.OSBTreeCollectionManagerShared
- All Implemented Interfaces:
OOrientShutdownListener,OOrientStartupListener,OSBTreeCollectionManager
public final class OSBTreeCollectionManagerShared
extends Object
implements OSBTreeCollectionManager, OOrientStartupListener, OOrientShutdownListener
- Author:
- Artem Orobets (enisher-at-gmail.com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()createAndLoadTree(OAtomicOperation atomicOperation, int clusterId) voidcreateComponent(OAtomicOperation operation, int clusterId) createSBTree(int clusterId, OAtomicOperation atomicOperation, UUID ownerUUID) booleandelete(OAtomicOperation atomicOperation, OBonsaiCollectionPointer collectionPointer) voiddelete(OBonsaiCollectionPointer collectionPointer) voiddeleteComponentByClusterId(OAtomicOperation atomicOperation, int clusterId) static StringgenerateLockName(int clusterId) Generates a lock name for the given cluster ID.booleanisComponentPresent(OAtomicOperation operation, int clusterId) listenForChanges(ORidBag collection) Change UUID to null to prevent its serialization to disk.voidload()loadSBTree(OBonsaiCollectionPointer collectionPointer) voidmigrate()voidvoidvoidreleaseSBTree(OBonsaiCollectionPointer collectionPointer) voidupdateCollectionPointer(UUID uuid, OBonsaiCollectionPointer pointer)
-
Field Details
-
FILE_EXTENSION
- See Also:
-
FILE_NAME_PREFIX
- See Also:
-
-
Constructor Details
-
OSBTreeCollectionManagerShared
-
-
Method Details
-
load
public void load() -
migrate
- Throws:
IOException
-
createAndLoadTree
public OSBTreeBonsai<OIdentifiable,Integer> createAndLoadTree(OAtomicOperation atomicOperation, int clusterId) - Specified by:
createAndLoadTreein interfaceOSBTreeCollectionManager
-
isComponentPresent
-
createComponent
-
deleteComponentByClusterId
-
loadSBTree
- Specified by:
loadSBTreein interfaceOSBTreeCollectionManager
-
releaseSBTree
- Specified by:
releaseSBTreein interfaceOSBTreeCollectionManager
-
delete
- Specified by:
deletein interfaceOSBTreeCollectionManager
-
createSBTree
public OBonsaiCollectionPointer createSBTree(int clusterId, OAtomicOperation atomicOperation, UUID ownerUUID) - Specified by:
createSBTreein interfaceOSBTreeCollectionManager
-
listenForChanges
Change UUID to null to prevent its serialization to disk.- Specified by:
listenForChangesin interfaceOSBTreeCollectionManager
-
updateCollectionPointer
- Specified by:
updateCollectionPointerin interfaceOSBTreeCollectionManager
-
clearPendingCollections
public void clearPendingCollections()- Specified by:
clearPendingCollectionsin interfaceOSBTreeCollectionManager
-
changedIds
- Specified by:
changedIdsin interfaceOSBTreeCollectionManager
-
clearChangedIds
public void clearChangedIds()- Specified by:
clearChangedIdsin interfaceOSBTreeCollectionManager
-
onShutdown
public void onShutdown()- Specified by:
onShutdownin interfaceOOrientShutdownListener
-
onStartup
public void onStartup()- Specified by:
onStartupin interfaceOOrientStartupListener
-
close
public void close() -
delete
-
generateLockName
Generates a lock name for the given cluster ID.- Parameters:
clusterId- the cluster ID to generate the lock name for.- Returns:
- the generated lock name.
-