public interface EPMetricsService
Modifier and Type | Method and Description |
---|---|
void |
setMetricsReportingDisabled()
Disable runtime-level metrics reporting.
|
void |
setMetricsReportingEnabled()
Enable runtime-level metrics reporting.
|
void |
setMetricsReportingInterval(String stmtGroupName,
long newIntervalMSec)
Sets a new interval for metrics reporting for a pre-configured statement group, or changes
the default statement reporting interval if supplying a null value for the statement group name.
|
void |
setMetricsReportingStmtDisabled(String deploymentId,
String statementName)
Disable metrics reporting for a given statement.
|
void |
setMetricsReportingStmtEnabled(String deploymentId,
String statementName)
Enable metrics reporting for the given statement.
|
void setMetricsReportingInterval(String stmtGroupName, long newIntervalMSec) throws ConfigurationException
stmtGroupName
- name of statement group, provide a null value for the default statement interval (default group)newIntervalMSec
- millisecond interval, use zero or negative value to disableConfigurationException
- if the statement group cannot be foundvoid setMetricsReportingStmtEnabled(String deploymentId, String statementName) throws ConfigurationException
This operation can only be performed at runtime and is not available at runtime initialization time.
Statement metric reporting follows the configured default or statement group interval.
Only if metrics reporting (on the runtimelevel) has been enabled at initialization time can statement-level metrics reporting be enabled through this method.
deploymentId
- for which to enable metrics reportingstatementName
- for which to enable metrics reportingConfigurationException
- if the statement cannot be foundvoid setMetricsReportingStmtDisabled(String deploymentId, String statementName) throws ConfigurationException
deploymentId
- for which to enable metrics reportingstatementName
- for which to disable metrics reportingConfigurationException
- if the statement cannot be foundvoid setMetricsReportingEnabled() throws ConfigurationException
Use this operation to control, at runtime, metrics reporting globally.
Only if metrics reporting (on the runtimelevel) has been enabled at initialization time can metrics reporting be re-enabled at runtime through this method.
ConfigurationException
- if use at runtime and metrics reporting had not been enabled at initialization timevoid setMetricsReportingDisabled() throws ConfigurationException
Use this operation to control, at runtime, metrics reporting globally. Setting metrics reporting to disabled removes all performance cost for metrics reporting.
ConfigurationException
- if use at runtime and metrics reporting had not been enabled at initialization timeCopyright © 2005–2018. All rights reserved.