
public abstract class OStorageAbstract extends Object implements OStorage, OSharedContainer
OStorage.LOCKING_STRATEGY, OStorage.STATUS| Modifier and Type | Field and Description |
|---|---|
protected OCurrentStorageComponentsFactory |
componentsFactory |
protected OStorageConfiguration |
configuration |
protected Throwable |
error |
protected ReentrantReadWriteLock |
errorLock |
protected boolean |
inError |
protected String |
mode |
protected String |
name |
protected OSharedContainerImpl |
sharedContainer
This field is used in EE version, do not make it private
|
protected ReentrantReadWriteLock |
stateLock |
protected OStorage.STATUS |
status |
static ThreadGroup |
storageThreadGroup |
protected String |
url |
CLUSTER_DEFAULT_NAME| Constructor and Description |
|---|
OStorageAbstract(String name,
String iURL,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkForRecordValidity(OPhysicalPosition ppos) |
void |
close() |
void |
close(boolean iForce,
boolean onDelete) |
long |
countRecords()
Returns the total number of records.
|
boolean |
dropCluster(String iClusterName) |
boolean |
existsResource(String iName) |
OCurrentStorageComponentsFactory |
getComponentsFactory() |
OStorageConfiguration |
getConfiguration() |
String |
getName() |
<T> T |
getResource(String iName,
Callable<T> iCallback) |
OStorage.STATUS |
getStatus()
Returns the current storage's status
|
OStorage |
getUnderlying() |
String |
getURL() |
long |
getVersion()
Returns current storage's version as serial.
|
boolean |
isAssigningClusterIds() |
boolean |
isClosed() |
boolean |
isDistributed() |
protected String |
normalizeName(String name) |
<T> T |
removeResource(String iName) |
void |
shutdown()
This method is called in
Orient.shutdown() method. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCluster, addCluster, ceilingPhysicalPositions, cleanOutRecord, clearProperties, command, commit, count, count, count, count, create, delete, deleteRecord, dropCluster, exists, floorPhysicalPositions, fullIncrementalBackup, getClusterDataRange, getClusterEncryption, getClusterIdByName, getClusterInstances, getClusterName, getClusterNameById, getClusterNames, getClusterNextPosition, getClusterRecordConflictStrategy, getClusterRecordsSizeById, getClusterRecordsSizeByName, getCreatedAtVersion, getLastClusterPosition, getPhysicalClusterNameById, getRecordConflictStrategy, getRecordMetadata, getRecordStatus, getSBtreeCollectionManager, getSize, getType, higherPhysicalPositions, incrementalBackup, isRemote, isSystemCluster, lowerPhysicalPositions, open, readRecord, readRecordIfVersionIsNotLatest, reload, removeProperty, restoreFromIncrementalBackup, restoreFullIncrementalBackup, setCharset, setClusterAttribute, setClusterAttribute, setClusterSelection, setConflictStrategy, setDateFormat, setDateTimeFormat, setDefaultClusterId, setIndexMgrRecordId, setLocaleCountry, setLocaleLanguage, setMinimumClusters, setProperty, setRecordSerializer, setSchemaRecordId, setTimeZone, setValidation, supportIncremental, synchbackup, restoregetClusters, getDefaultClusterIdpublic static final ThreadGroup storageThreadGroup
protected final String url
protected final String mode
protected final ReentrantReadWriteLock stateLock
protected final ReentrantReadWriteLock errorLock
protected volatile OStorageConfiguration configuration
protected volatile OCurrentStorageComponentsFactory componentsFactory
protected String name
protected volatile OStorage.STATUS status
protected Throwable error
protected volatile boolean inError
protected final OSharedContainerImpl sharedContainer
public OStorage getUnderlying()
getUnderlying in interface OStoragepublic OStorageConfiguration getConfiguration()
getConfiguration in interface OStorageInfopublic boolean checkForRecordValidity(OPhysicalPosition ppos)
checkForRecordValidity in interface OStoragepublic String getURL()
getURL in interface OStorageInfopublic boolean existsResource(String iName)
existsResource in interface OSharedContainerpublic <T> T removeResource(String iName)
removeResource in interface OSharedContainerpublic <T> T getResource(String iName, Callable<T> iCallback)
getResource in interface OSharedContainerpublic long getVersion()
getVersion in interface OStoragepublic boolean dropCluster(String iClusterName)
dropCluster in interface OStoragepublic long countRecords()
OStoragecountRecords in interface OStoragepublic OStorage.STATUS getStatus()
OStoragepublic boolean isDistributed()
isDistributed in interface OStoragepublic boolean isAssigningClusterIds()
isAssigningClusterIds in interface OStorageisAssigningClusterIds in interface OStorageInfopublic OCurrentStorageComponentsFactory getComponentsFactory()
getComponentsFactory in interface OStoragepublic void shutdown()
OStorageOrient.shutdown() method.
For most of the storages it means that storage will be merely closed, but sometimes additional
operations are need to be taken in account.Copyright © 2009–2025 OrientDB. All rights reserved.