public class CacheGroupPageScanner extends Object implements CheckpointListener
CheckpointListener.Context| Constructor and Description |
|---|
CacheGroupPageScanner(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCheckpointBegin(CheckpointListener.Context cpCtx)
Do some actions before checkpoint write lock.
|
boolean |
excludePartition(int grpId,
int partId)
Stop scannig the specified partition.
|
double |
getRate() |
void |
includePartition(int grpId,
int partId) |
void |
onCheckpointBegin(CheckpointListener.Context cpCtx) |
void |
onMarkCheckpointBegin(CheckpointListener.Context ctx) |
long[] |
pagesCount(CacheGroupContext grp)
Collect current number of pages in the specified cache group.
|
long |
remainingPagesCount(int grpId) |
IgniteInternalFuture<Void> |
schedule(int grpId)
Schedule scanning partitions.
|
void |
setRate(double rate) |
IgniteInternalFuture<Void> |
statusFuture(int grpId) |
void |
stop()
Shutdown scanning and disable new tasks scheduling.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterCheckpointEndpublic CacheGroupPageScanner(GridKernalContext ctx)
ctx - Grid kernal context.public void onCheckpointBegin(CheckpointListener.Context cpCtx)
onCheckpointBegin in interface CheckpointListenerpublic void beforeCheckpointBegin(CheckpointListener.Context cpCtx)
beforeCheckpointBegin in interface CheckpointListenerpublic void onMarkCheckpointBegin(CheckpointListener.Context ctx)
onMarkCheckpointBegin in interface CheckpointListenerpublic IgniteInternalFuture<Void> schedule(int grpId) throws IgniteCheckedException
grpId - Cache group ID.IgniteCheckedExceptionpublic IgniteInternalFuture<Void> statusFuture(int grpId)
grpId - Cache group ID.public void stop()
throws IgniteCheckedException
IgniteCheckedExceptionpublic boolean excludePartition(int grpId,
int partId)
grpId - Cache group ID.partId - Partition ID.True if reencryption was cancelled.public void includePartition(int grpId,
int partId)
grpId - Cache group ID.partId - Partition ID.public long[] pagesCount(CacheGroupContext grp) throws IgniteCheckedException
grp - Cache group.IgniteCheckedException - If failed.public long remainingPagesCount(int grpId)
grpId - Cache group ID.public double getRate()
0 - unlimited).public void setRate(double rate)
rate - Re-encryption rate limit in megabytes per second (0 - unlimited).
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021