Class OEnterpriseLocalPaginatedStorage
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage
com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage
com.orientechnologies.orient.core.storage.impl.local.paginated.OEnterpriseLocalPaginatedStorage
- All Implemented Interfaces:
OBackgroundExceptionListener,OCheckpointRequestListener,OFreezableStorageComponent,OPageIsBrokenListener,OStorage,OStorageInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.storage.OStorage
OStorage.LOCKING_STRATEGY, OStorage.STATUS -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage
iv, IV_SEEDFields inherited from class com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage
ALGORITHM_NAME, atomicOperationsManager, atomicOperationsTable, componentsFactory, CONF_ENTRY_NAME, CONF_UTF_8_ENTRY_NAME, configuration, context, DATABASE_INSTANCE_ID, ENCRYPTION_IV, error, fuzzyCheckpointExecutor, IV_EXT, IV_NAME, memoryPool, name, readCache, sbTreeCollectionManager, stateLock, status, storageThreadGroup, TRANSFORMATION, url, writeAheadLog, writeCacheFields inherited from interface com.orientechnologies.orient.core.storage.OStorage
CLUSTER_DEFAULT_NAME -
Constructor Summary
ConstructorsConstructorDescriptionOEnterpriseLocalPaginatedStorage(String name, String filePath, int id, OReadCache readCache, OClosableLinkedContainer<Long, OFile> files, long walMaxSize, long doubleWriteLogMaxSize, OrientDBInternal context, OByteBufferPool pool) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(OStorageTransaction clientTx, boolean allocated) The commit operation can be run in 3 different conditions, embedded commit, pre-allocated commit, other node commit.incrementalBackup(String backupDirectory, OCallable<Void, Void> started) booleanisLastBackupCompatibleWithUUID(File backupDirectory) readRecord(ORecordId iRid) voidvoidrestoreFromIncrementalBackup(String filePath) voidMethods inherited from class com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage
addFileToDirectory, backup, checkAndCleanPath, checkIfStorageDirty, clearStorageDirty, copyWALToIncrementalBackup, create, createWalFromIBUFiles, createWalTempDirectory, deleteFilesFromDisc, doCreate, doDelete, exists, exists, getIv, getOpenedAtVersion, getPath, getStoragePath, getType, getURL, initConfiguration, initIv, initWalAndDiskCache, isDirty, isWriteAllowedDuringIncrementalBackup, makeStorageDirty, postCloseSteps, postDeleteSteps, postProcessIncrementalRestore, preCloseSteps, preCreateSteps, readIv, restore, restoreNetworkMethods inherited from class com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage
acquireReadLock, acquireReadLock, acquireWriteLock, acquireWriteLock, addCluster, addCluster, addIndexEngine, backupIv, backupPagesWithChanges, backupTransactions, browseCluster, calculateAndModifyWithAtomicOperation, callIndexEngine, ceilingPhysicalPositions, check, checkBackupRunning, checkDatabaseInstanceId, checkErrorState, checkForRecordValidity, checkName, checkOpennessAndMigration, cleanOutRecord, clearIndex, clearProperties, close, closeClusters, closeIndexes, commit, commitPreAllocated, count, count, countRecords, createRecord, createSBTree, delete, deleteIndexEngine, deleteRecord, deleteTreeRidBag, doEncryptionDecryption, doShutdown, doShutdownOnDelete, dropCluster, dropCluster, endBackup, endDDL, extractEngineAPIVersion, extractTransactionsFromWal, fireConfigurationUpdateNotifications, floorPhysicalPositions, flushAllData, freeze, fullIncrementalBackup, generateDatabaseInstanceId, getAtomicOperationsManager, getClusterDataRange, getClusterEncryption, getClusterIdByName, getClusterInstances, getClusterName, getClusterNameById, getClusterNames, getClusterNextPosition, getClusterRecordConflictStrategy, getClusterRecordsSizeById, getClusterRecordsSizeByName, getClusters, getClustersIds, getComponentsFactory, getConfiguration, getConfigurationUpdateListener, getContext, getCreatedAtVersion, getDatabaseId, getDefaultClusterId, getId, getIdGen, getIndexApiVersion, getIndexDescStream, getIndexEngine, getIndexKeyStream, getIndexSize, getIndexStream, getIndexValues, getLastClusterPosition, getLastMetadata, getLSN, getName, getPhysicalClusterNameById, getReadCache, getRecordConflictStrategy, getRecordMetadata, getRecordScanned, getRecordStatus, getRecoverListener, getRidsGroupedByCluster, getSBtreeCollectionManager, getSize, getStatus, getVersion, getVersionForKey, getWALInstance, getWriteCache, hasIndexRangeQuerySupport, higherPhysicalPositions, incrementalBackup, incrementalBackup, incrementalSync, isAssigningClusterIds, isClosed, isClosedInternal, isDDLRunning, isDeleted, isIcrementalBackupRunning, isInError, isMemory, isOpen, isSystemCluster, iterateIndexEntriesBetween, iterateIndexEntriesMajor, iterateIndexEntriesMinor, loadEncryption, loadIndexEngine, logAndPrepareForRethrow, logAndPrepareForRethrow, logAndPrepareForRethrow, logAndPrepareForRethrow, logAndPrepareForRethrow, lowerPhysicalPositions, makeFuzzyCheckpoint, metadataOnly, modifyWithAtomicOperation, moveToErrorStateIfNeeded, normalizeName, onException, open, openClusters, openIndexes, pageIsBroken, pauseConfigurationUpdateNotifications, postCreateSteps, preallocateRids, preprocessingIncrementalRestore, readDatabaseInstanceId, readRecordIfVersionIsNotLatest, readTransactionsFromWal, registerRecoverListener, release, releaseReadLock, releaseWriteLock, reload, removeIndexValuesContainer, removeProperty, replaceConfiguration, requestCheckpoint, resolveObjectSerializer, restoreAtomicUnit, restoreEncryptionIv, restoreFrom, restoreFromIncrementalBackup, restoreFullIncrementalBackup, restoreIv, setCharset, setClusterAttribute, setClusterSelection, setConfigurationUpdateListener, setConflictStrategy, setDateFormat, setDateTimeFormat, setDefaultClusterId, setIndexMgrRecordId, setLocaleCountry, setLocaleLanguage, setMinimumClusters, setProperty, setRecordSerializer, setSchemaRecordId, setTimeZone, setValidation, shutdown, startBackup, startDDL, supportIncremental, synch, toString, unregisterRecoverListener, updateRecord, wereDataRestoredAfterOpen, wereNonTxOperationsPerformedInPreviousOpen
-
Constructor Details
-
OEnterpriseLocalPaginatedStorage
public OEnterpriseLocalPaginatedStorage(String name, String filePath, int id, OReadCache readCache, OClosableLinkedContainer<Long, OFile> files, long walMaxSize, long doubleWriteLogMaxSize, OrientDBInternal context, OByteBufferPool pool)
-
-
Method Details
-
incrementalBackup
- Specified by:
incrementalBackupin interfaceOStorage- Overrides:
incrementalBackupin classOAbstractPaginatedStorage- Returns:
- Backup file name
-
isLastBackupCompatibleWithUUID
- Throws:
IOException
-
registerStorageListener
-
unRegisterStorageListener
-
restoreFromIncrementalBackup
- Specified by:
restoreFromIncrementalBackupin interfaceOStorage- Overrides:
restoreFromIncrementalBackupin classOAbstractPaginatedStorage
-
readRecord
- Specified by:
readRecordin interfaceOStorage- Overrides:
readRecordin classOAbstractPaginatedStorage
-
commit
Description copied from class:OAbstractPaginatedStorageThe commit operation can be run in 3 different conditions, embedded commit, pre-allocated commit, other node commit.Embedded commit is the basic commit where the operation is run in embedded or server side, the transaction arrive with invalid rids that get allocated and committed.pre-allocated commit is the commit that happen after an preAllocateRids call is done, this is usually run by the coordinator of a tx in distributed.other node commit is the commit that happen when a node execute a transaction of another node where all the rids are already allocated in the other node.- Overrides:
commitin classOAbstractPaginatedStorage- Parameters:
clientTx- the transaction to commitallocated- true if the operation is pre-allocated commit
-