public class LoadAllWarmUpStrategy extends Object implements WarmUpStrategy<LoadAllWarmUpConfiguration>
DataRegionConfiguration.getMaxSize() with priority
to index partitions. Loading occurs sequentially for each cache group,
starting with index partition, and then all others in ascending order.| Constructor and Description |
|---|
LoadAllWarmUpStrategy(IgniteLogger log,
Supplier<Collection<CacheGroupContext>> grpCtxSup)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
availableLoadPageCount(DataRegion region)
Getting count of pages available for loading into data region.
|
Class<LoadAllWarmUpConfiguration> |
configClass()
Returns configuration class for mapping to strategy.
|
protected Map<CacheGroupContext,List<org.apache.ignite.internal.processors.cache.warmup.LoadAllWarmUpStrategy.LoadPartition>> |
loadDataInfo(DataRegion region)
Calculation of cache groups, partitions and count of pages that can load
into data region.
|
void |
stop()
Stop warming up.
|
String |
toString() |
void |
warmUp(LoadAllWarmUpConfiguration cfg,
DataRegion region)
Warm up.
|
public LoadAllWarmUpStrategy(IgniteLogger log, Supplier<Collection<CacheGroupContext>> grpCtxSup)
log - Logger.grpCtxSup - Cache group contexts supplier. Since GridCacheProcessor starts later.public Class<LoadAllWarmUpConfiguration> configClass()
configClass in interface WarmUpStrategy<LoadAllWarmUpConfiguration>public void warmUp(LoadAllWarmUpConfiguration cfg, DataRegion region) throws IgniteCheckedException
warmUp in interface WarmUpStrategy<LoadAllWarmUpConfiguration>cfg - Warm-up configuration.region - Data region.IgniteCheckedException - if faild.public void stop()
throws IgniteCheckedException
stop in interface WarmUpStrategy<LoadAllWarmUpConfiguration>IgniteCheckedException - if faild.protected long availableLoadPageCount(DataRegion region)
region - Data region.protected Map<CacheGroupContext,List<org.apache.ignite.internal.processors.cache.warmup.LoadAllWarmUpStrategy.LoadPartition>> loadDataInfo(DataRegion region) throws IgniteCheckedException
region - Data region.IgniteCheckedException - – if faild.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021