|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.ConfigurationMetricsReporting
public class ConfigurationMetricsReporting
Configuratiom for metrics reporting.
Nested Class Summary | |
---|---|
static class |
ConfigurationMetricsReporting.StmtGroupMetrics
Class to configure statement metrics reporting for a group of one or more statements. |
Constructor Summary | |
---|---|
ConfigurationMetricsReporting()
Ctor. |
Method Summary | |
---|---|
void |
addStmtGroup(java.lang.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. |
java.util.Map<java.lang.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(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationMetricsReporting()
Method Detail |
---|
public void addStmtGroup(java.lang.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 java.util.Map<java.lang.String,ConfigurationMetricsReporting.StmtGroupMetrics> getStatementGroups()
public boolean isJmxEngineMetrics()
public void setJmxEngineMetrics(boolean jmxEngineMetrics)
jmxEngineMetrics
- indicator whether enabled or notpublic void setStatementGroupInterval(java.lang.String stmtGroupName, long newInterval)
stmtGroupName
- name of statement group as assigned through configurationnewInterval
- new interval, or a -1 or zero value to disable reporting
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |