Class SqlQueryMXBeanImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.running.SqlQueryMXBeanImpl
-
- All Implemented Interfaces:
SqlQueryMXBean
public class SqlQueryMXBeanImpl extends Object implements SqlQueryMXBean
QueryMXBean implementation.
-
-
Constructor Summary
Constructors Constructor Description SqlQueryMXBeanImpl(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLongQueryTimeoutMultiplier()longgetLongQueryWarningTimeout()longgetResultSetSizeThreshold()intgetResultSetSizeThresholdMultiplier()Gets result set size threshold multiplier.voidsetLongQueryTimeoutMultiplier(int longQryTimeoutMultiplier)Sets long query timeout multiplier.voidsetLongQueryWarningTimeout(long longQryWarningTimeout)Sets timeout in milliseconds after which long query warning will be printed.voidsetResultSetSizeThreshold(long rsSizeThreshold)Sets threshold result's row count, when count of fetched rows is bigger than the threshold warning will be printed.voidsetResultSetSizeThresholdMultiplier(int rsSizeThresholdMultiplier)Sets result set size threshold multiplier.
-
-
-
Constructor Detail
-
SqlQueryMXBeanImpl
public SqlQueryMXBeanImpl(GridKernalContext ctx)
- Parameters:
ctx- Context.
-
-
Method Detail
-
getLongQueryWarningTimeout
public long getLongQueryWarningTimeout()
- Specified by:
getLongQueryWarningTimeoutin interfaceSqlQueryMXBean- Returns:
- Timeout in milliseconds after which long query warning will be printed.
-
setLongQueryWarningTimeout
public void setLongQueryWarningTimeout(long longQryWarningTimeout)
Sets timeout in milliseconds after which long query warning will be printed.- Specified by:
setLongQueryWarningTimeoutin interfaceSqlQueryMXBean- Parameters:
longQryWarningTimeout- Timeout in milliseconds after which long query warning will be printed.
-
getLongQueryTimeoutMultiplier
public int getLongQueryTimeoutMultiplier()
- Specified by:
getLongQueryTimeoutMultiplierin interfaceSqlQueryMXBean- Returns:
- Long query timeout multiplier.
-
setLongQueryTimeoutMultiplier
public void setLongQueryTimeoutMultiplier(int longQryTimeoutMultiplier)
Sets long query timeout multiplier. The warning will be printed after: - timeout; - timeout * multiplier; - timeout * multiplier * multiplier; - etc. If the multiplier <= 1, the warning message is printed once.- Specified by:
setLongQueryTimeoutMultiplierin interfaceSqlQueryMXBean- Parameters:
longQryTimeoutMultiplier- Long query timeout multiplier.
-
getResultSetSizeThreshold
public long getResultSetSizeThreshold()
- Specified by:
getResultSetSizeThresholdin interfaceSqlQueryMXBean- Returns:
- Threshold for the number of rows of the result, when count of fetched rows is bigger than the threshold warning will be printed.
-
setResultSetSizeThreshold
public void setResultSetSizeThreshold(long rsSizeThreshold)
Sets threshold result's row count, when count of fetched rows is bigger than the threshold warning will be printed.- Specified by:
setResultSetSizeThresholdin interfaceSqlQueryMXBean- Parameters:
rsSizeThreshold- Threshold result's row count, when count of fetched rows is bigger than the threshold warning will be printed.
-
getResultSetSizeThresholdMultiplier
public int getResultSetSizeThresholdMultiplier()
Gets result set size threshold multiplier. The warning will be printed after: - size of result set > threshold; - size of result set > threshold * multiplier; - size of result set > threshold * multiplier * multiplier; - etc. If the multiplier <= 1, the warning message is printed once during query execution and the next one on the query end.- Specified by:
getResultSetSizeThresholdMultiplierin interfaceSqlQueryMXBean- Returns:
- Result set size threshold multiplier.
-
setResultSetSizeThresholdMultiplier
public void setResultSetSizeThresholdMultiplier(int rsSizeThresholdMultiplier)
Sets result set size threshold multiplier.- Specified by:
setResultSetSizeThresholdMultiplierin interfaceSqlQueryMXBean- Parameters:
rsSizeThresholdMultiplier- Result set size threshold multiplier.
-
-