Class StatementMetricRepository
java.lang.Object
com.espertech.esper.common.internal.metrics.stmtmetrics.StatementMetricRepository
A repository for all statement metrics that organizes statements into statement groups.
At a minimum there is one group (the default) of index zero.
-
Constructor Summary
ConstructorDescriptionStatementMetricRepository
(String runtimeURI, ConfigurationRuntimeMetricsReporting specification) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accountOutput
(StatementMetricHandle handle, int numIStream, int numRStream) Account row output.void
accountTimes
(StatementMetricHandle handle, long cpu, long wall, int numInput) Account statement times.addStatement
(DeploymentIdNamePair statement) Add a statement, inspecting the statement name and adding it to a statement group or the default group, if none.void
iterateMetrics
(Consumer<EPMetricsStatementGroup> consumer) void
removeStatement
(DeploymentIdNamePair statement) Remove statement.reportGroup
(int group) Report for a given statement group.
-
Constructor Details
-
StatementMetricRepository
public StatementMetricRepository(String runtimeURI, ConfigurationRuntimeMetricsReporting specification) Ctor.- Parameters:
runtimeURI
- runtime URIspecification
- specifies statement groups
-
-
Method Details
-
addStatement
Add a statement, inspecting the statement name and adding it to a statement group or the default group, if none.- Parameters:
statement
- name to inspect- Returns:
- handle for statement
-
removeStatement
Remove statement.- Parameters:
statement
- to remove
-
accountTimes
Account statement times.- Parameters:
handle
- statement handlecpu
- timewall
- timenumInput
- number of input rows
-
accountOutput
Account row output.- Parameters:
handle
- statement handlenumIStream
- num rows insert streamnumRStream
- num rows remove stream
-
reportGroup
Report for a given statement group.- Parameters:
group
- to report- Returns:
- metrics or null if none
-
iterateMetrics
-