public class BasicWarmupClosure extends Object implements IgniteInClosure<IgniteConfiguration>
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_GRID_CNT
Default grid count to warm up.
|
static int |
DFLT_ITERATION_CNT
Default iteration count per thread.
|
static int |
DFLT_KEY_RANGE
Default key range.
|
Constructor and Description |
---|
BasicWarmupClosure() |
Modifier and Type | Method and Description |
---|---|
void |
apply(IgniteConfiguration gridCfg)
Closure body.
|
int |
getDiscoveryPort()
Gets discovery port for warmup.
|
int |
getGridCount()
Gets number of grids to start and run warmup.
|
int |
getIterationCount()
Gets iteration count for warmup.
|
int |
getKeyRange()
Gets key range.
|
int |
getThreadCount()
Gets thread count for warmup.
|
String[] |
getWarmupMethods()
Gets warmup methods to use for cache warmup.
|
void |
setDiscoveryPort(int discoveryPort)
Sets discovery port for warmup.
|
void |
setGridCount(int gridCnt)
Sets number of grids to start and run the warmup.
|
void |
setIterationCount(int iterCnt)
Sets iteration count for warmup.
|
void |
setKeyRange(int keyRange)
Sets key range.
|
void |
setThreadCount(int threadCnt)
Sets thread count for warmup.
|
void |
setWarmupMethods(String... warmupMethods)
Sets warmup methods to use for cache warmup.
|
String |
toString() |
public static final int DFLT_GRID_CNT
public static final int DFLT_ITERATION_CNT
public static final int DFLT_KEY_RANGE
public int getGridCount()
public void setGridCount(int gridCnt)
gridCnt
- Number of grids.public String[] getWarmupMethods()
public void setWarmupMethods(String... warmupMethods)
warmupMethods
- Array of warmup methods.public int getThreadCount()
public void setThreadCount(int threadCnt)
threadCnt
- Thread count.public int getIterationCount()
public void setIterationCount(int iterCnt)
iterCnt
- Iteration count for warmup.public int getKeyRange()
public void setKeyRange(int keyRange)
keyRange
- Key range.public int getDiscoveryPort()
public void setDiscoveryPort(int discoveryPort)
discoveryPort
- Discovery port.public void apply(IgniteConfiguration gridCfg)
apply
in interface IgniteInClosure<IgniteConfiguration>
gridCfg
- Closure argument.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024