java.lang.Object
io.ebean.meta.AbstractMetricVisitor
io.ebean.meta.BasicMetricVisitor
- All Implemented Interfaces:
MetricVisitor
,ServerMetrics
A simple MetricVisitor that can collect the desired metrics into lists.
-
Constructor Summary
ConstructorDescriptionConstruct to reset and collect everything.BasicMetricVisitor
(boolean reset, boolean collectTransactionMetrics, boolean collectQueryMetrics, boolean collectL2Metrics) Construct specifying reset and what to collect. -
Method Summary
Modifier and TypeMethodDescriptionReturn the Counter metrics.Return the query metrics.Return timed metrics for Transactions, labelled SqlQuery, labelled SqlUpdate.void
visitCount
(MetaCountMetric metric) Visit a Counter metric.void
visitQuery
(MetaQueryMetric metric) Visit DTO and SQL query metrics.void
visitTimed
(MetaTimedMetric metric) Visit transaction metrics (and L2 cache metrics in future).Methods inherited from class io.ebean.meta.AbstractMetricVisitor
collectL2Metrics, collectQueryMetrics, collectTransactionMetrics, reset, visitEnd, visitStart
-
Constructor Details
-
BasicMetricVisitor
public BasicMetricVisitor()Construct to reset and collect everything. -
BasicMetricVisitor
public BasicMetricVisitor(boolean reset, boolean collectTransactionMetrics, boolean collectQueryMetrics, boolean collectL2Metrics) Construct specifying reset and what to collect.
-
-
Method Details
-
timedMetrics
Description copied from interface:ServerMetrics
Return timed metrics for Transactions, labelled SqlQuery, labelled SqlUpdate.- Specified by:
timedMetrics
in interfaceServerMetrics
-
queryMetrics
Description copied from interface:ServerMetrics
Return the query metrics.- Specified by:
queryMetrics
in interfaceServerMetrics
-
countMetrics
Description copied from interface:ServerMetrics
Return the Counter metrics.- Specified by:
countMetrics
in interfaceServerMetrics
-
visitTimed
Description copied from interface:MetricVisitor
Visit transaction metrics (and L2 cache metrics in future).- Specified by:
visitTimed
in interfaceMetricVisitor
-
visitQuery
Description copied from interface:MetricVisitor
Visit DTO and SQL query metrics.- Specified by:
visitQuery
in interfaceMetricVisitor
-
visitCount
Description copied from interface:MetricVisitor
Visit a Counter metric.- Specified by:
visitCount
in interfaceMetricVisitor
-