public class CachePartitionDefragmentationManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFRAGMENTATION_MNTC_TASK_NAME |
| Constructor and Description |
|---|
CachePartitionDefragmentationManager(List<String> cacheNames,
GridCacheSharedContext<?,?> sharedCtx,
GridCacheDatabaseSharedManager dbMgr,
FilePageStoreManager filePageStoreMgr,
CheckpointManager nodeCheckpoint,
LightweightCheckpointManager defragmentationCheckpoint,
int pageSize,
int defragmentationThreadPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDefragmentation() |
boolean |
cancel()
Cancel the process of defragmentation.
|
IgniteInternalFuture<?> |
completionFuture() |
void |
createIndexPageStore(int grpId,
File workDir,
FilePageStoreFactory pageStoreFactory,
DataRegion partRegion,
LongConsumer allocatedTracker) |
void |
executeDefragmentation() |
org.apache.ignite.internal.processors.cache.persistence.defragmentation.CachePartitionDefragmentationManager.Status |
status() |
public static final String DEFRAGMENTATION_MNTC_TASK_NAME
public CachePartitionDefragmentationManager(List<String> cacheNames, GridCacheSharedContext<?,?> sharedCtx, GridCacheDatabaseSharedManager dbMgr, FilePageStoreManager filePageStoreMgr, CheckpointManager nodeCheckpoint, LightweightCheckpointManager defragmentationCheckpoint, int pageSize, int defragmentationThreadPoolSize) throws IgniteCheckedException
cacheNames - Names of caches to be defragmented. Empty means "all".sharedCtx - Cache shared context.dbMgr - Database manager.filePageStoreMgr - File page store manager.nodeCheckpoint - Default checkpoint for this node.defragmentationCheckpoint - Specific checkpoint for defragmentation.pageSize - Page size.IgniteCheckedExceptionpublic void beforeDefragmentation()
throws IgniteCheckedException
IgniteCheckedExceptionpublic void executeDefragmentation()
throws IgniteCheckedException
IgniteCheckedExceptionpublic IgniteInternalFuture<?> completionFuture()
public void createIndexPageStore(int grpId,
File workDir,
FilePageStoreFactory pageStoreFactory,
DataRegion partRegion,
LongConsumer allocatedTracker)
throws IgniteCheckedException
IgniteCheckedExceptionpublic boolean cancel()
true if process was cancelled by this method.public org.apache.ignite.internal.processors.cache.persistence.defragmentation.CachePartitionDefragmentationManager.Status status()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021