Interface MetricReportingService
public interface MetricReportingService
Metrics reporting service for instrumentation data publishing, if enabled.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accountOutput
(StatementMetricHandle handle, int numIStream, int numRStream, Object epStatement, Object runtime) Account for statement output row counting.void
accountTime
(StatementMetricHandle metricsHandle, long deltaCPU, long deltaWall, int numInput) Account for statement CPU and wall time.void
destroy()
Destroy the service.getStatementHandle
(int statementId, String deploymentId, String statementName) Returns for a new statement a handle for later accounting.boolean
void
iterateMetrics
(Consumer<EPMetricsStatementGroup> consumer) void
processTimeEvent
(long currentTime) Indicates current runtime time.void
setContext
(FilterService filterService, SchedulingService schedulingService, EventServiceSendEventCommon eventServiceSendEventInternal) void
Disables metrics reporting globally.void
Enables metrics reporting globally.void
setMetricsReportingInterval
(String stmtGroupName, long newInterval) Change the reporting interval for the given statement group name.void
setMetricsReportingStmtDisabled
(String deploymentId, String statementName) Disable metrics reporting for statement.void
setMetricsReportingStmtEnabled
(String deploymentId, String statementName) Enable metrics reporting for statement.
-
Method Details
-
setContext
void setContext(FilterService filterService, SchedulingService schedulingService, EventServiceSendEventCommon eventServiceSendEventInternal) -
processTimeEvent
void processTimeEvent(long currentTime) Indicates current runtime time.- Parameters:
currentTime
- runtime time
-
destroy
void destroy()Destroy the service. -
accountTime
Account for statement CPU and wall time.- Parameters:
metricsHandle
- statement handledeltaCPU
- cpu time nsecdeltaWall
- wall time nsecnumInput
- number of input rows
-
accountOutput
void accountOutput(StatementMetricHandle handle, int numIStream, int numRStream, Object epStatement, Object runtime) Account for statement output row counting.- Parameters:
handle
- statement handlenumIStream
- number of insert stream rowsnumRStream
- number of remove stream rowsepStatement
- statementruntime
- runtime
-
getStatementHandle
StatementMetricHandle getStatementHandle(int statementId, String deploymentId, String statementName) Returns for a new statement a handle for later accounting.- Parameters:
statementId
- statement iddeploymentId
- deployment idstatementName
- statement name- Returns:
- handle
-
setMetricsReportingInterval
Change the reporting interval for the given statement group name.- Parameters:
stmtGroupName
- group namenewInterval
- new interval, or zero or negative value to disable reporting
-
setMetricsReportingStmtDisabled
Disable metrics reporting for statement.- Parameters:
deploymentId
- deployment idstatementName
- statement name
-
setMetricsReportingStmtEnabled
Enable metrics reporting for statement.- Parameters:
deploymentId
- deployment idstatementName
- statement name
-
setMetricsReportingEnabled
void setMetricsReportingEnabled()Enables metrics reporting globally. -
setMetricsReportingDisabled
void setMetricsReportingDisabled()Disables metrics reporting globally. -
isMetricsReportingEnabled
boolean isMetricsReportingEnabled() -
iterateMetrics
-