PagesList.PagesCache, PagesList.StripebucketsSize, changed, log, name| Constructor and Description |
|---|
ReuseListImpl(int cacheId,
String name,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
long metaPageId,
boolean initNew,
PageLockListener lockLsnr,
GridKernalContext ctx,
AtomicLong pageListCacheLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addForRecycle(ReuseBag bag) |
protected boolean |
casBucket(int bucket,
PagesList.Stripe[] exp,
PagesList.Stripe[] upd) |
protected PagesList.Stripe[] |
getBucket(int bucket) |
protected PagesList.PagesCache |
getBucketCache(int bucket,
boolean create) |
protected int |
getBucketIndex(int freeSpace)
Gets bucket index by page freespace.
|
protected boolean |
isReuseBucket(int bucket) |
long |
recycledPagesCount() |
long |
takeRecycledPage() |
String |
toString() |
bucketsCount, bucketSize, cachedPagesCount, init, initReusedPage, name, put, removeDataPage, saveMetadata, storedPagesCount, stripesCount, takeEmptyPageacquirePage, allocatePage, allocatePage, allocatePageNoReuse, groupId, init, needWalDeltaRecord, pageSize, randomInt, read, read, readLock, readUnlock, recyclePage, releasePage, tryWriteLock, write, write, write, write, writeLock, writeUnlock, writeUnlockpublic ReuseListImpl(int cacheId,
String name,
PageMemory pageMem,
IgniteWriteAheadLogManager wal,
long metaPageId,
boolean initNew,
PageLockListener lockLsnr,
GridKernalContext ctx,
AtomicLong pageListCacheLimit)
throws IgniteCheckedException
cacheId - Cache ID.name - Name (for debug purpose).pageMem - Page memory.wal - Write ahead log manager.metaPageId - Metadata page ID.initNew - True if new metadata should be initialized.IgniteCheckedException - If failed.protected boolean isReuseBucket(int bucket)
isReuseBucket in class PagesListbucket - Bucket index.true If it is a reuse bucket.public void addForRecycle(ReuseBag bag) throws IgniteCheckedException
addForRecycle in interface ReuseListbag - Reuse bag.IgniteCheckedException - If failed.public long takeRecycledPage()
throws IgniteCheckedException
takeRecycledPage in interface ReuseList0 if none available.IgniteCheckedException - If failed.public long recycledPagesCount()
throws IgniteCheckedException
recycledPagesCount in interface ReuseListIgniteCheckedException - If failed.protected PagesList.Stripe[] getBucket(int bucket)
protected int getBucketIndex(int freeSpace)
getBucketIndex in class PagesListprotected boolean casBucket(int bucket,
PagesList.Stripe[] exp,
PagesList.Stripe[] upd)
protected PagesList.PagesCache getBucketCache(int bucket, boolean create)
getBucketCache in class PagesListbucket - Bucket index.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020