public static class ConfigurationMetricsReporting.StmtGroupMetrics extends Object implements Serializable
Constructor and Description |
---|
StmtGroupMetrics()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExcludeLike(String likeExpression)
Exclude all statements from the statement group that match the SQL like-expression by statement name.
|
void |
addExcludeRegEx(String regexExpression)
Exclude all statements in the statement group that match the regular expression by statement name.
|
void |
addIncludeLike(String likeExpression)
Include all statements in the statement group that match the SQL like-expression by statement name.
|
void |
addIncludeRegex(String regexExpression)
Include all statements in the statement group that match the regular expression by statement name.
|
long |
getInterval()
Returns the reporting interval for statement metrics for statements in the statement group.
|
int |
getNumStatements()
Returns the initial capacity number of statements held by the statement group.
|
List<Pair<StringPatternSet,Boolean>> |
getPatterns()
Returns a list of patterns that indicate whether a statement, by the statement name matching or
not matching each pattern, falls within the statement group.
|
boolean |
isDefaultInclude()
If this flag is set then all statement names are automatically included in this
statement group, and through exclude-pattern certain statement names can be omitted
|
boolean |
isReportInactive()
Returns true to indicate that inactive statements (statements without events or timer activity)
are also reported.
|
void |
setDefaultInclude(boolean defaultInclude)
Set this flag to true and all statement names are automatically included in this
statement group, and through exclude-pattern certain statement names can be omitted
|
void |
setInterval(long interval)
Sets the reporting interval for statement metrics for statements in the statement group.
|
void |
setNumStatements(int numStatements)
Sets the initial capacity number of statements held by the statement group.
|
void |
setReportInactive(boolean reportInactive)
Set to true to indicate that inactive statements (statements without events or timer activity)
are also reported, or false to omit reporting for inactive statements.
|
public void addIncludeLike(String likeExpression)
likeExpression
- to matchpublic void addExcludeLike(String likeExpression)
likeExpression
- to matchpublic void addIncludeRegex(String regexExpression)
regexExpression
- to matchpublic void addExcludeRegEx(String regexExpression)
regexExpression
- to matchpublic long getInterval()
public void setInterval(long interval)
interval
- a negative or zero value to disable reporting for this group of statementspublic List<Pair<StringPatternSet,Boolean>> getPatterns()
Include-patterns are boolean true in the pair of pattern and boolean. Exclude-patterns are boolean false.
public int getNumStatements()
public void setNumStatements(int numStatements)
numStatements
- initial capacitypublic boolean isReportInactive()
public void setReportInactive(boolean reportInactive)
reportInactive
- set to true for reporting inactive statementspublic boolean isDefaultInclude()
If this flag is not set then all statement names are automatically excluded in this statement group, and through include-pattern certain statement names can be included.
The default is false, i.e. statements must be explicitly included.
public void setDefaultInclude(boolean defaultInclude)
Set this flag to false and all statement names are automatically excluded in this statement group, and through include-pattern certain statement names can be included.
The default is false, i.e. statements must be explicitly included.
defaultInclude
- true for include all statements, false for explicitly include statements