
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 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) |
abstract long |
countRecords()
Returns the total number of records.
|
boolean |
dropCluster(String iClusterName,
boolean iTruncate) |
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, createRecord, delete, deleteRecord, dropCluster, exists, floorPhysicalPositions, fullIncrementalBackup, getClusterDataRange, getClusterEncryption, getClusterIdByName, getClusterNameById, getClusterNames, getClusterNextPosition, getClusterRecordConflictStrategy, getClusterRecordConflictStrategy, getClusterRecordsSizeById, getClusterRecordsSizeByName, getClusters, getCreatedAtVersion, getDefaultClusterId, getLastClusterPosition, getPhysicalClusterNameById, getRecordMetadata, getRecordStatus, getSBtreeCollectionManager, getSize, getType, hideRecord, higherPhysicalPositions, incrementalBackup, isRemote, isSystemCluster, lowerPhysicalPositions, open, readRecord, readRecordIfVersionIsNotLatest, recyclePosition, reload, removeProperty, restoreFromIncrementalBackup, restoreFullIncrementalBackup, rollback, setCharset, setClusterAttribute, setClusterAttribute, setClusterSelection, setConflictStrategy, setDateFormat, setDateTimeFormat, setDefaultClusterId, setIndexMgrRecordId, setLocaleCountry, setLocaleLanguage, setMinimumClusters, setProperty, setRecordSerializer, setSchemaRecordId, setTimeZone, setValidation, supportIncremental, synch, truncateClusterbackup, restorepublic static final ThreadGroup storageThreadGroup
protected final String url
protected final String mode
protected final ReentrantReadWriteLock stateLock
protected volatile OStorageConfiguration configuration
protected volatile OCurrentStorageComponentsFactory componentsFactory
protected String name
protected volatile OStorage.STATUS status
protected final OSharedContainerImpl sharedContainer
public OStorage getUnderlying()
getUnderlying in interface OStoragepublic OStorageConfiguration getConfiguration()
getConfiguration in interface OStoragepublic boolean checkForRecordValidity(OPhysicalPosition ppos)
checkForRecordValidity in interface OStoragepublic 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, boolean iTruncate)
dropCluster in interface OStoragepublic abstract long countRecords()
OStoragecountRecords in interface OStoragepublic OStorage.STATUS getStatus()
OStoragepublic boolean isDistributed()
isDistributed in interface OStoragepublic boolean isAssigningClusterIds()
isAssigningClusterIds in interface OStoragepublic 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.