
public abstract class ODurableComponent extends OSharedResourceAdaptive
startAtomicOperation(boolean) method.endAtomicOperation(boolean, Exception) method when atomic operation completes, passed in parameter should be
false if atomic operation completes with success and true if there were some exceptions and it is
needed to rollback given operation.| Modifier and Type | Field and Description |
|---|---|
protected OAtomicOperationsManager |
atomicOperationsManager |
protected String |
extension |
protected OPerformanceStatisticManager |
performanceStatisticManager |
protected OReadCache |
readCache |
protected OAbstractPaginatedStorage |
storage |
protected OWriteCache |
writeCache |
| Constructor and Description |
|---|
ODurableComponent(OAbstractPaginatedStorage storage,
String name,
String extension,
String lockName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acquireExclusiveLock() |
protected long |
addFile(OAtomicOperation atomicOperation,
String fileName) |
protected OCacheEntry |
addPage(OAtomicOperation atomicOperation,
long fileId) |
protected void |
completeOperation() |
protected void |
deleteFile(OAtomicOperation atomicOperation,
long fileId) |
protected void |
endAtomicOperation(boolean rollback,
Exception e) |
protected OWALChanges |
getChanges(OAtomicOperation atomicOperation,
OCacheEntry entry) |
String |
getExtension() |
protected long |
getFilledUpTo(OAtomicOperation atomicOperation,
long fileId) |
String |
getFullName() |
String |
getLockName() |
String |
getName() |
protected boolean |
isFileExists(OAtomicOperation atomicOperation,
long fileId) |
protected boolean |
isFileExists(OAtomicOperation atomicOperation,
String fileName) |
protected OCacheEntry |
loadPage(OAtomicOperation atomicOperation,
long fileId,
long pageIndex,
boolean checkPinnedPages) |
protected OCacheEntry |
loadPage(OAtomicOperation atomicOperation,
long fileId,
long pageIndex,
boolean checkPinnedPages,
int pageCount) |
protected long |
openFile(OAtomicOperation atomicOperation,
String fileName) |
protected void |
pinPage(OAtomicOperation atomicOperation,
OCacheEntry cacheEntry) |
protected void |
releasePage(OAtomicOperation atomicOperation,
OCacheEntry cacheEntry) |
void |
setName(String name) |
protected OAtomicOperation |
startAtomicOperation(boolean trackNonTxOperations) |
protected void |
startOperation() |
protected void |
truncateFile(OAtomicOperation atomicOperation,
long filedId) |
acquireSharedLock, addUser, assertExclusiveLockHold, assertSharedLockHold, getUsers, isConcurrent, releaseExclusiveLock, releaseSharedLock, removeUser, tryAcquireExclusiveLock, tryAcquireSharedLockprotected final OAtomicOperationsManager atomicOperationsManager
protected final OAbstractPaginatedStorage storage
protected final OReadCache readCache
protected final OWriteCache writeCache
protected final OPerformanceStatisticManager performanceStatisticManager
protected final String extension
public ODurableComponent(OAbstractPaginatedStorage storage, String name, String extension, String lockName)
public String getLockName()
public String getName()
public void setName(String name)
public String getFullName()
public String getExtension()
protected void acquireExclusiveLock()
acquireExclusiveLock in class OSharedResourceAdaptiveprotected void endAtomicOperation(boolean rollback,
Exception e)
throws IOException
IOExceptionprotected OAtomicOperation startAtomicOperation(boolean trackNonTxOperations) throws IOException
protected OWALChanges getChanges(OAtomicOperation atomicOperation, OCacheEntry entry)
protected long getFilledUpTo(OAtomicOperation atomicOperation, long fileId) throws IOException
IOExceptionprotected OCacheEntry loadPage(OAtomicOperation atomicOperation, long fileId, long pageIndex, boolean checkPinnedPages) throws IOException
IOExceptionprotected OCacheEntry loadPage(OAtomicOperation atomicOperation, long fileId, long pageIndex, boolean checkPinnedPages, int pageCount) throws IOException
IOExceptionprotected void pinPage(OAtomicOperation atomicOperation, OCacheEntry cacheEntry) throws IOException
IOExceptionprotected OCacheEntry addPage(OAtomicOperation atomicOperation, long fileId) throws IOException
IOExceptionprotected void releasePage(OAtomicOperation atomicOperation, OCacheEntry cacheEntry)
protected long addFile(OAtomicOperation atomicOperation, String fileName) throws IOException
IOExceptionprotected long openFile(OAtomicOperation atomicOperation, String fileName) throws IOException
IOExceptionprotected void deleteFile(OAtomicOperation atomicOperation, long fileId) throws IOException
IOExceptionprotected boolean isFileExists(OAtomicOperation atomicOperation, String fileName)
protected boolean isFileExists(OAtomicOperation atomicOperation, long fileId)
protected void truncateFile(OAtomicOperation atomicOperation, long filedId) throws IOException
IOExceptionprotected void startOperation()
protected void completeOperation()
Copyright © 2009–2025 OrientDB. All rights reserved.