
public class OLocalPaginatedStorage extends OAbstractPaginatedStorage
OStorage.LOCKING_STRATEGY, OStorage.STATUSatomicOperationsManager, atomicOperationsTable, DATABASE_INSTANCE_ID, fuzzyCheckpointExecutor, interruptionManager, readCache, sbTreeCollectionManager, writeAheadLog, writeCachecomponentsFactory, configuration, mode, name, sharedContainer, stateLock, status, storageThreadGroup, urlCLUSTER_DEFAULT_NAME| Constructor and Description |
|---|
OLocalPaginatedStorage(String name,
String filePath,
String mode,
int id,
OReadCache readCache,
OClosableLinkedContainer<Long,OFileClassic> files,
long walMaxSegSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFileToDirectory(String name,
InputStream stream,
File directory) |
List<String> |
backup(OutputStream out,
Map<String,Object> options,
Callable<Object> callable,
OCommandOutputListener iOutput,
int compressionLevel,
int bufferSize)
Executes a backup of the database.
|
protected long |
checkIfStorageDirty() |
protected void |
clearStorageDirty() |
protected OLogSequenceNumber |
copyWALToIncrementalBackup(ZipOutputStream zipOutputStream,
long startSegment) |
void |
create(OContextConfiguration contextConfiguration) |
protected OWriteAheadLog |
createWalFromIBUFiles(File directory,
OContextConfiguration contextConfiguration,
Locale locale) |
protected File |
createWalTempDirectory() |
static void |
deleteFilesFromDisc(String name,
int maxRetries,
int waitTime,
String databaseDirectory) |
boolean |
exists() |
static boolean |
exists(Path path) |
Path |
getStoragePath() |
String |
getType()
Returns the storage's type.
|
String |
getURL() |
protected void |
initConfiguration(OAtomicOperation atomicOperation,
OContextConfiguration contextConfiguration) |
protected void |
initWalAndDiskCache(OContextConfiguration contextConfiguration) |
protected boolean |
isDirty() |
protected boolean |
isWriteAllowedDuringIncrementalBackup() |
protected void |
makeStorageDirty() |
protected String |
normalizeName(String name) |
protected void |
postCloseSteps(boolean onDelete,
boolean jvmError,
long lastTxId) |
protected void |
postCloseStepsAfterLock(Map<String,Object> params) |
protected void |
postDeleteSteps() |
protected Map<String,Object> |
preCloseSteps() |
protected void |
preCreateSteps() |
void |
restore(InputStream in,
Map<String,Object> options,
Callable<Object> callable,
OCommandOutputListener iListener)
Executes a restore of a database backup.
|
acquireReadLock, acquireWriteLock, addCluster, addCluster, addIndexEngine, browseCluster, callIndexEngine, ceilingPhysicalPositions, check, checkDatabaseInstanceId, checkForRecordValidity, checkOpenness, checkReadOnlyConditions, cleanOutRecord, clearIndex, clearProperties, close, closeClusters, closeIndexes, command, commit, commit, commitPreAllocated, completeGatheringPerformanceStatisticForCurrentThread, count, count, count, count, countRecords, createRecord, delete, deleteIndexEngine, deleteRecord, dropCluster, executeCommand, extractEngineAPIVersion, fireConfigurationUpdateNotifications, floorPhysicalPositions, freeze, fullIncrementalBackup, generateDatabaseInstanceId, getAtomicOperationsManager, getClusterDataRange, getClusterEncryption, getClusterIdByName, getClusterNameById, getClusterNames, getClusterNextPosition, getClusterRecordConflictStrategy, getClusterRecordConflictStrategy, getClusterRecordsSizeById, getClusterRecordsSizeByName, getClusters, getConfiguration, getCreatedAtVersion, getDefaultClusterId, getFullCheckpointCount, getId, getIdGen, getIndexCursor, getIndexDescCursor, getIndexEngine, getIndexFirstKey, getIndexKeyCursor, getIndexLastKey, getIndexSize, getIndexValue, getLastCloseTime, getLastClusterPosition, getLSN, getMode, getPerformanceStatisticManager, getPhysicalClusterNameById, getReadCache, getRecordMetadata, getRecordScanned, getRecordStatus, getRecoverListener, getRidsGroupedByCluster, getSBtreeCollectionManager, getSessionCount, getSize, getStorageTransaction, getWALInstance, getWriteCache, handleJVMError, hasIndexRangeQuerySupport, hideRecord, higherPhysicalPositions, incOnOpen, incrementalBackup, indexContainsKey, interruptExecution, isClosed, isDeleted, isRemote, isSystemCluster, iterateIndexEntriesBetween, iterateIndexEntriesMajor, iterateIndexEntriesMinor, loadExternalIndexEngine, loadIndexEngine, logAndPrepareForRethrow, logAndPrepareForRethrow, logAndPrepareForRethrow, lowDiskSpace, lowerPhysicalPositions, makeFullCheckpoint, makeFuzzyCheckpoint, onException, open, open, open, openClusters, openIndexes, pageIsBroken, pauseConfigurationUpdateNotifications, postCreateSteps, preallocateRids, putIndexValue, putRidIndexEntry, readDatabaseInstanceId, readRecord, readRecordIfVersionIsNotLatest, recordsChangedAfterLSN, recordsChangedRecently, recyclePosition, registerRecoverListener, release, releaseReadLock, releaseWriteLock, reload, removeKeyFromIndex, removeProperty, removeRidIndexEntry, renameCluster, requestCheckpoint, restoreAtomicUnit, restoreFrom, restoreFromIncrementalBackup, restoreFullIncrementalBackup, rollback, rollback, serializeDeltaContent, setCharset, setClusterAttribute, setClusterAttribute, setClusterSelection, setClusterStatus, setConflictStrategy, setDateFormat, setDateTimeFormat, setDefaultClusterId, setIndexMgrRecordId, setLocaleCountry, setLocaleLanguage, setMinimumClusters, setProperty, setRecordSerializer, setSchemaRecordId, setStorageConfigurationUpdateListener, setTimeZone, setValidation, startGatheringPerformanceStatisticForCurrentThread, supportIncremental, synch, truncateCluster, tryToDeleteTreeRidBag, underDistributedStorage, unregisterRecoverListener, updateIndexEntry, updateRecord, validatedPutIndexValue, wereDataRestoredAfterOpen, wereNonTxOperationsPerformedInPreviousOpenclose, dropCluster, existsResource, getComponentsFactory, getName, getResource, getStatus, getUnderlying, getVersion, isAssigningClusterIds, isDistributed, removeResource, shutdown, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, dropCluster, getComponentsFactory, getName, getStatus, getUnderlying, getVersion, isAssigningClusterIds, isDistributed, shutdownexistsResource, getResource, removeResourcepublic OLocalPaginatedStorage(String name, String filePath, String mode, int id, OReadCache readCache, OClosableLinkedContainer<Long,OFileClassic> files, long walMaxSegSize)
public void create(OContextConfiguration contextConfiguration)
create in interface OStoragecreate in class OAbstractPaginatedStorageprotected final String normalizeName(String name)
normalizeName in class OStorageAbstractpublic final boolean exists()
public String getURL()
getURL in interface OStoragegetURL in class OStorageAbstractpublic final Path getStoragePath()
public String getType()
OStoragepublic final List<String> backup(OutputStream out, Map<String,Object> options, Callable<Object> callable, OCommandOutputListener iOutput, int compressionLevel, int bufferSize)
OBackupableout - OutputStream used to write the backup content. Use a FileOutputStream to make the backup persistent on diskoptions - Backup options as Mapcallable - Callback to execute when the database is lockediOutput - Listener called for backup messagescompressionLevel - ZIP Compression level between 1 (the minimum) and 9 (maximum). The bigger is the compression, the smaller will be the
final backup content, but will consume more CPU and time to executebufferSize - Buffer size in bytes, the bigger is the buffer, the more efficient will be the compressionODatabaseExportpublic final void restore(InputStream in, Map<String,Object> options, Callable<Object> callable, OCommandOutputListener iListener)
OBackupablein - InputStream used to read the backup content. Use a FileInputStream to read a backup on a diskoptions - Backup options as Mapcallable - Callback to execute when the database is lockediListener - Listener called for backup messagesODatabaseImportprotected OLogSequenceNumber copyWALToIncrementalBackup(ZipOutputStream zipOutputStream, long startSegment) throws IOException
copyWALToIncrementalBackup in class OAbstractPaginatedStorageIOExceptionprotected File createWalTempDirectory()
createWalTempDirectory in class OAbstractPaginatedStorageprotected void addFileToDirectory(String name, InputStream stream, File directory) throws IOException
addFileToDirectory in class OAbstractPaginatedStorageIOExceptionprotected OWriteAheadLog createWalFromIBUFiles(File directory, OContextConfiguration contextConfiguration, Locale locale) throws IOException
createWalFromIBUFiles in class OAbstractPaginatedStorageIOExceptionprotected long checkIfStorageDirty()
throws IOException
checkIfStorageDirty in class OAbstractPaginatedStorageIOExceptionprotected void initConfiguration(OAtomicOperation atomicOperation, OContextConfiguration contextConfiguration) throws IOException
initConfiguration in class OAbstractPaginatedStorageIOExceptionprotected Map<String,Object> preCloseSteps()
preCloseSteps in class OAbstractPaginatedStorageprotected void postCloseStepsAfterLock(Map<String,Object> params)
postCloseStepsAfterLock in class OAbstractPaginatedStorageprotected void preCreateSteps()
throws IOException
preCreateSteps in class OAbstractPaginatedStorageIOExceptionprotected void postCloseSteps(boolean onDelete,
boolean jvmError,
long lastTxId)
throws IOException
postCloseSteps in class OAbstractPaginatedStorageIOExceptionprotected void postDeleteSteps()
postDeleteSteps in class OAbstractPaginatedStoragepublic static void deleteFilesFromDisc(String name, int maxRetries, int waitTime, String databaseDirectory)
protected void makeStorageDirty()
throws IOException
makeStorageDirty in class OAbstractPaginatedStorageIOExceptionprotected void clearStorageDirty()
throws IOException
clearStorageDirty in class OAbstractPaginatedStorageIOExceptionprotected boolean isDirty()
isDirty in class OAbstractPaginatedStorageprotected boolean isWriteAllowedDuringIncrementalBackup()
isWriteAllowedDuringIncrementalBackup in class OAbstractPaginatedStorageprotected void initWalAndDiskCache(OContextConfiguration contextConfiguration) throws IOException, InterruptedException
initWalAndDiskCache in class OAbstractPaginatedStorageIOExceptionInterruptedExceptionpublic static boolean exists(Path path)
Copyright © 2009–2025 OrientDB. All rights reserved.