Class OCacheEntryImpl
java.lang.Object
com.orientechnologies.orient.core.storage.cache.OCacheEntryImpl
- All Implemented Interfaces:
OCacheEntry,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionOCacheEntryImpl(long fileId, int pageIndex, OCachePointer dataPointer, boolean insideCache, OReadCache readCache) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoidvoidvoidclose()voidbooleanbooleanfreeze()longgetNext()intgetPrev()intinthashCode()voidbooleanbooleanisAlive()booleanisDead()booleanisFrozen()booleanDEBUG only !!booleanbooleanvoidmakeDead()voidvoidvoidvoidvoidsetContainer(LRUList lruList) voidsetEndLSN(OLogSequenceNumber endLSN) voidvoidsetNext(OCacheEntry next) voidsetPrev(OCacheEntry prev) toString()
-
Constructor Details
-
OCacheEntryImpl
public OCacheEntryImpl(long fileId, int pageIndex, OCachePointer dataPointer, boolean insideCache, OReadCache readCache)
-
-
Method Details
-
isNewlyAllocatedPage
public boolean isNewlyAllocatedPage()- Specified by:
isNewlyAllocatedPagein interfaceOCacheEntry
-
markAllocated
public void markAllocated()- Specified by:
markAllocatedin interfaceOCacheEntry
-
clearAllocationFlag
public void clearAllocationFlag()- Specified by:
clearAllocationFlagin interfaceOCacheEntry
-
getCachePointer
- Specified by:
getCachePointerin interfaceOCacheEntry
-
clearCachePointer
public void clearCachePointer()- Specified by:
clearCachePointerin interfaceOCacheEntry
-
getFileId
public long getFileId()- Specified by:
getFileIdin interfaceOCacheEntry
-
getPageIndex
public int getPageIndex()- Specified by:
getPageIndexin interfaceOCacheEntry
-
acquireExclusiveLock
public void acquireExclusiveLock()- Specified by:
acquireExclusiveLockin interfaceOCacheEntry
-
releaseExclusiveLock
public void releaseExclusiveLock()- Specified by:
releaseExclusiveLockin interfaceOCacheEntry
-
getUsagesCount
public int getUsagesCount()- Specified by:
getUsagesCountin interfaceOCacheEntry
-
incrementUsages
public void incrementUsages()- Specified by:
incrementUsagesin interfaceOCacheEntry
-
isLockAcquiredByCurrentThread
public boolean isLockAcquiredByCurrentThread()DEBUG only !!- Specified by:
isLockAcquiredByCurrentThreadin interfaceOCacheEntry- Returns:
- Whether lock acquired on current entry
-
decrementUsages
public void decrementUsages()- Specified by:
decrementUsagesin interfaceOCacheEntry
-
getChanges
- Specified by:
getChangesin interfaceOCacheEntry
-
getInitialLSN
- Specified by:
getInitialLSNin interfaceOCacheEntry
-
setInitialLSN
- Specified by:
setInitialLSNin interfaceOCacheEntry
-
getEndLSN
- Specified by:
getEndLSNin interfaceOCacheEntry
-
setEndLSN
- Specified by:
setEndLSNin interfaceOCacheEntry
-
acquireEntry
public boolean acquireEntry()- Specified by:
acquireEntryin interfaceOCacheEntry
-
releaseEntry
public void releaseEntry()- Specified by:
releaseEntryin interfaceOCacheEntry
-
isReleased
public boolean isReleased()- Specified by:
isReleasedin interfaceOCacheEntry
-
isAlive
public boolean isAlive()- Specified by:
isAlivein interfaceOCacheEntry
-
freeze
public boolean freeze()- Specified by:
freezein interfaceOCacheEntry
-
isFrozen
public boolean isFrozen()- Specified by:
isFrozenin interfaceOCacheEntry
-
makeDead
public void makeDead()- Specified by:
makeDeadin interfaceOCacheEntry
-
isDead
public boolean isDead()- Specified by:
isDeadin interfaceOCacheEntry
-
getNext
- Specified by:
getNextin interfaceOCacheEntry
-
getPrev
- Specified by:
getPrevin interfaceOCacheEntry
-
setPrev
- Specified by:
setPrevin interfaceOCacheEntry
-
setNext
- Specified by:
setNextin interfaceOCacheEntry
-
setContainer
- Specified by:
setContainerin interfaceOCacheEntry
-
getContainer
- Specified by:
getContainerin interfaceOCacheEntry
-
insideCache
public boolean insideCache()- Specified by:
insideCachein interfaceOCacheEntry
-
equals
-
hashCode
public int hashCode() -
getPageKey
- Specified by:
getPageKeyin interfaceOCacheEntry
-
toString
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-