public class ConfigurationRuntimeMetricsReporting extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationRuntimeMetricsReporting.StmtGroupMetrics
Class to configure statement metrics reporting for a group of one or more statements.
|
Constructor and Description |
---|
ConfigurationRuntimeMetricsReporting()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStmtGroup(String name,
ConfigurationRuntimeMetricsReporting.StmtGroupMetrics config)
Add a statement group, allowing control of metrics reporting interval per statement or
per multiple statements.
|
long |
getRuntimeInterval()
Returns the runtimemetrics production interval in milliseconds.
|
Map<String,ConfigurationRuntimeMetricsReporting.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 |
isJmxRuntimeMetrics()
Returns true if the runtime registers JMX mbeans, with the platform mbean server,
that provide key runtime 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 |
setJmxRuntimeMetrics(boolean jmxRuntimeMetrics)
Set to true to have the the runtime register JMX mbeans, with the platform mbean server,
that provide key runtime metrics.
|
void |
setRuntimeInterval(long runtimeInterval)
Sets the runtimemetrics production interval in milliseconds.
|
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 ConfigurationRuntimeMetricsReporting()
public void addStmtGroup(String name, ConfigurationRuntimeMetricsReporting.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 getRuntimeInterval()
public void setRuntimeInterval(long runtimeInterval)
Use a negative or zero value to disable runtime metrics production.
runtimeInterval
- runtime metrics production intervalpublic long getStatementInterval()
public void setStatementInterval(long statementInterval)
statementInterval
- statement metrics production intervalpublic Map<String,ConfigurationRuntimeMetricsReporting.StmtGroupMetrics> getStatementGroups()
public boolean isJmxRuntimeMetrics()
public void setJmxRuntimeMetrics(boolean jmxRuntimeMetrics)
jmxRuntimeMetrics
- 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 reportingCopyright © 2005–2018. All rights reserved.