public final class HeavyQueriesTracker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HeavyQueriesTracker.ResultSetChecker
Holds result-set limit settings for the specified query.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
BIG_RESULT_SET_MSG |
static String |
LONG_QUERY_ERROR_MSG |
static String |
LONG_QUERY_EXEC_MSG
Message about the long execution of the query.
|
static String |
LONG_QUERY_FINISHED_MSG |
| Constructor and Description |
|---|
HeavyQueriesTracker(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
long |
getResultSetSizeThreshold() |
int |
getResultSetSizeThresholdMultiplier()
Gets result set size threshold multiplier.
|
long |
getTimeout() |
int |
getTimeoutMultiplier() |
HeavyQueriesTracker.ResultSetChecker |
resultSetChecker(TrackableQuery qryInfo)
Creates new result-set checker.
|
void |
setResultSetSizeThreshold(long rsSizeThreshold)
Sets threshold result's row count, when count of fetched rows is bigger than the threshold
warning will be printed.
|
void |
setResultSetSizeThresholdMultiplier(int rsSizeThresholdMult)
Sets result set size threshold multiplier.
|
void |
setTimeout(long timeout)
Sets timeout in milliseconds after which long query warning will be printed.
|
void |
setTimeoutMultiplier(int timeoutMult)
Sets long query timeout multiplier.
|
void |
startTracking(TrackableQuery qryInfo) |
void |
stop() |
void |
stopTracking(TrackableQuery qryInfo,
@Nullable Throwable err) |
public static final String LONG_QUERY_EXEC_MSG
public static final String LONG_QUERY_FINISHED_MSG
public static final String LONG_QUERY_ERROR_MSG
public static final String BIG_RESULT_SET_MSG
public HeavyQueriesTracker(GridKernalContext ctx)
ctx - Kernal context.public void stop()
public void startTracking(TrackableQuery qryInfo)
qryInfo - Query info to register.public void stopTracking(TrackableQuery qryInfo, @Nullable @Nullable Throwable err)
qryInfo - Query info to remove.err - Exception if query executed with error.public HeavyQueriesTracker.ResultSetChecker resultSetChecker(TrackableQuery qryInfo)
qryInfo - Query info.public long getTimeout()
public void setTimeout(long timeout)
timeout - Timeout in milliseconds after which long query warning will be printed.public int getTimeoutMultiplier()
public void setTimeoutMultiplier(int timeoutMult)
timeoutMult - Long query timeout multiplier.public long getResultSetSizeThreshold()
public void setResultSetSizeThreshold(long rsSizeThreshold)
rsSizeThreshold - Threshold result's row count, when count of fetched rows is bigger than the threshold
warning will be printed.public int getResultSetSizeThresholdMultiplier()
public void setResultSetSizeThresholdMultiplier(int rsSizeThresholdMult)
rsSizeThresholdMult - Result set size threshold multiplier
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023