public class ConfigurationMetricsReporting extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationMetricsReporting.StmtGroupMetrics
Class to configure statement metrics reporting for a group of one or more statements.
|
Constructor and Description |
---|
ConfigurationMetricsReporting()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStmtGroup(String name,
ConfigurationMetricsReporting.StmtGroupMetrics config)
Add a statement group, allowing control of metrics reporting interval per statement or
per multiple statements.
|
long |
getEngineInterval()
Returns the engine metrics production interval in milliseconds.
|
Map<String,ConfigurationMetricsReporting.StmtGroupMetrics> |
getStatementGroups()
Returns a map of statement group and metrics configuration for the statement group.
|
long |
getStatementInterval()
Returns the statement metrics production interval in milliseconds,
unless statement groups have been defined that override this setting for certain statements.
|
boolean |
isEnableMetricsReporting()
Returns true if metrics reporting is turned on, false if not.
|
boolean |
isJmxEngineMetrics()
Returns true if the engine registers JMX mbeans, with the platform mbean server,
that provide key engine metrics.
|
boolean |
isThreading()
Returns true to indicate that metrics reporting takes place in a separate thread (default),
or false to indicate that metrics reporting takes place as part of timer processing.
|
void |
setEnableMetricsReporting(boolean enableMetricsReporting)
Set to true to turn metrics reporting on, or false to turn metrics reporting off.
|
void |
setEngineInterval(long engineInterval)
Sets the engine metrics production interval in milliseconds.
|
void |
setJmxEngineMetrics(boolean jmxEngineMetrics)
Set to true to have the the engine register JMX mbeans, with the platform mbean server,
that provide key engine metrics.
|
void |
setStatementGroupInterval(String stmtGroupName,
long newInterval)
Sets a new interval for a statement group identified by name.
|
void |
setStatementInterval(long statementInterval)
Sets the statement metrics production interval in milliseconds,
unless statement groups have been defined that override this setting for certain statements.
|
void |
setThreading(boolean threading)
Set to true to indicate that metrics reporting should take place in a separate thread,
or false to indicate that metrics reporting takes place as part of timer processing.
|
public void addStmtGroup(String name, ConfigurationMetricsReporting.StmtGroupMetrics config)
Add pattern include and exclude criteria to control which
name
- of statement group, not connected to statement name, assigned as an
arbitrary identifier for runtime changes to the intervalconfig
- the statement group metrics configurationpublic boolean isEnableMetricsReporting()
public void setEnableMetricsReporting(boolean enableMetricsReporting)
enableMetricsReporting
- indicator whether metrics reporting should be turned onpublic boolean isThreading()
public void setThreading(boolean threading)
threading
- indicator whether metrics reporting is threadedpublic long getEngineInterval()
public void setEngineInterval(long engineInterval)
Use a negative or zero value to disable engine metrics production.
engineInterval
- engine metrics production intervalpublic long getStatementInterval()
public void setStatementInterval(long statementInterval)
statementInterval
- statement metrics production intervalpublic Map<String,ConfigurationMetricsReporting.StmtGroupMetrics> getStatementGroups()
public boolean isJmxEngineMetrics()
public void setJmxEngineMetrics(boolean jmxEngineMetrics)
jmxEngineMetrics
- indicator whether enabled or notpublic void setStatementGroupInterval(String stmtGroupName, long newInterval)
stmtGroupName
- name of statement group as assigned through configurationnewInterval
- new interval, or a -1 or zero value to disable reporting