
public abstract class OStorageAbstract extends Object implements OStorage, OSharedContainer
OStorage.LOCKING_STRATEGY, OStorage.SIZE, OStorage.STATUS| Modifier and Type | Field and Description |
|---|---|
protected OCurrentStorageComponentsFactory |
componentsFactory |
protected OStorageConfiguration |
configuration |
protected String |
mode |
protected String |
name |
protected OSharedContainerImpl |
sharedContainer |
protected OReadWriteLock |
stateLock |
protected OStorage.STATUS |
status |
static ThreadGroup |
storageThreadGroup |
protected String |
url |
protected AtomicLong |
version |
CLUSTER_DEFAULT_NAME| Constructor and Description |
|---|
OStorageAbstract(String name,
String iURL,
String mode,
OReadWriteLock stateLock) |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
callInLock(Callable<V> iCallable,
boolean iExclusiveLock) |
void |
checkForClusterPermissions(String iClusterName) |
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 iTruncate) |
boolean |
existsResource(String iName) |
abstract OCluster |
getClusterByName(String iClusterName) |
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, getClusterById, getClusterDataRange, getClusterIdByName, getClusterInstances, getClusterNames, getClusters, getConflictStrategy, getDefaultClusterId, getPhysicalClusterNameById, getRecordMetadata, getSBtreeCollectionManager, getSize, getType, hideRecord, higherPhysicalPositions, incrementalBackup, isRemote, lowerPhysicalPositions, open, readRecord, readRecordIfVersionIsNotLatest, recyclePosition, reload, removeProperty, restoreFromIncrementalBackup, rollback, setCharset, setClusterSelection, setConflictStrategy, setDateFormat, setDateTimeFormat, setDefaultClusterId, setIndexMgrRecordId, setLocaleCountry, setLocaleLanguage, setMinimumClusters, setProperty, setRecordSerializer, setSchemaRecordId, setTimeZone, setValidation, synch, updateConfiguration, updateRecordbackup, restorepublic static final ThreadGroup storageThreadGroup
protected final String url
protected final String mode
protected final OReadWriteLock stateLock
protected volatile OStorageConfiguration configuration
protected volatile OCurrentStorageComponentsFactory componentsFactory
protected String name
protected AtomicLong version
protected volatile OStorage.STATUS status
protected final OSharedContainerImpl sharedContainer
public OStorageAbstract(String name, String iURL, String mode, OReadWriteLock stateLock)
public abstract OCluster getClusterByName(String iClusterName)
getClusterByName in interface OStoragepublic 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 long countRecords()
OStoragecountRecords in interface OStoragepublic <V> V callInLock(Callable<V> iCallable, boolean iExclusiveLock)
callInLock in interface OStoragepublic OStorage.STATUS getStatus()
OStoragepublic void checkForClusterPermissions(String iClusterName)
checkForClusterPermissions in interface 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.