public abstract class OSBTreeCollectionManagerAbstract extends Object implements OCloseable, OSBTreeCollectionManager, OOrientStartupListener, OOrientShutdownListener
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXTENSION |
static String |
FILE_NAME_PREFIX |
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, wait
changedIds, clearChangedIds, clearPendingCollections, listenForChanges, updateCollectionPointer
public static final String FILE_NAME_PREFIX
public static final String DEFAULT_EXTENSION
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(int clusterId) throws IOException
createAndLoadTree
in interface OSBTreeCollectionManager
IOException
public OBonsaiCollectionPointer createSBTree(int clusterId, 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> createTree(int clusterId) throws IOException
IOException
protected abstract OSBTreeBonsai<OIdentifiable,Integer> loadTree(OBonsaiCollectionPointer collectionPointer)
Copyright © 2009–2019 OrientDB. All rights reserved.