Package org.apache.ignite.startup
Class BasicWarmupClosure
- java.lang.Object
- 
- org.apache.ignite.startup.BasicWarmupClosure
 
- 
- All Implemented Interfaces:
- Serializable,- IgniteInClosure<IgniteConfiguration>
 
 public class BasicWarmupClosure extends Object implements IgniteInClosure<IgniteConfiguration> Basic warm-up closure which warm-ups cache operations.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDFLT_GRID_CNTDefault grid count to warm up.static intDFLT_ITERATION_CNTDefault iteration count per thread.static intDFLT_KEY_RANGEDefault key range.
 - 
Constructor SummaryConstructors Constructor Description BasicWarmupClosure()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(IgniteConfiguration gridCfg)Closure body.intgetDiscoveryPort()Gets discovery port for warmup.intgetGridCount()Gets number of grids to start and run warmup.intgetIterationCount()Gets iteration count for warmup.intgetKeyRange()Gets key range.intgetThreadCount()Gets thread count for warmup.String[]getWarmupMethods()Gets warmup methods to use for cache warmup.voidsetDiscoveryPort(int discoveryPort)Sets discovery port for warmup.voidsetGridCount(int gridCnt)Sets number of grids to start and run the warmup.voidsetIterationCount(int iterCnt)Sets iteration count for warmup.voidsetKeyRange(int keyRange)Sets key range.voidsetThreadCount(int threadCnt)Sets thread count for warmup.voidsetWarmupMethods(String... warmupMethods)Sets warmup methods to use for cache warmup.StringtoString()
 
- 
- 
- 
Field Detail- 
DFLT_GRID_CNTpublic static final int DFLT_GRID_CNT Default grid count to warm up.- See Also:
- Constant Field Values
 
 - 
DFLT_ITERATION_CNTpublic static final int DFLT_ITERATION_CNT Default iteration count per thread.- See Also:
- Constant Field Values
 
 - 
DFLT_KEY_RANGEpublic static final int DFLT_KEY_RANGE Default key range.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getGridCountpublic int getGridCount() Gets number of grids to start and run warmup.- Returns:
- Number of grids.
 
 - 
setGridCountpublic void setGridCount(int gridCnt) Sets number of grids to start and run the warmup.- Parameters:
- gridCnt- Number of grids.
 
 - 
getWarmupMethodspublic String[] getWarmupMethods() Gets warmup methods to use for cache warmup.- Returns:
- Warmup methods.
 
 - 
setWarmupMethodspublic void setWarmupMethods(String... warmupMethods) Sets warmup methods to use for cache warmup.- Parameters:
- warmupMethods- Array of warmup methods.
 
 - 
getThreadCountpublic int getThreadCount() Gets thread count for warmup.- Returns:
- Thread count.
 
 - 
setThreadCountpublic void setThreadCount(int threadCnt) Sets thread count for warmup.- Parameters:
- threadCnt- Thread count.
 
 - 
getIterationCountpublic int getIterationCount() Gets iteration count for warmup.- Returns:
- Iteration count.
 
 - 
setIterationCountpublic void setIterationCount(int iterCnt) Sets iteration count for warmup.- Parameters:
- iterCnt- Iteration count for warmup.
 
 - 
getKeyRangepublic int getKeyRange() Gets key range.- Returns:
- Key range.
 
 - 
setKeyRangepublic void setKeyRange(int keyRange) Sets key range.- Parameters:
- keyRange- Key range.
 
 - 
getDiscoveryPortpublic int getDiscoveryPort() Gets discovery port for warmup.- Returns:
- Discovery port.
 
 - 
setDiscoveryPortpublic void setDiscoveryPort(int discoveryPort) Sets discovery port for warmup.- Parameters:
- discoveryPort- Discovery port.
 
 - 
applypublic void apply(IgniteConfiguration gridCfg) Closure body.- Specified by:
- applyin interface- IgniteInClosure<IgniteConfiguration>
- Parameters:
- gridCfg- Closure argument.
 
 
- 
 
-