- All Known Implementing Classes:
AbstractMetricVisitor
,BasicMetricVisitor
public interface MetricVisitor
Defines visitor to read and report the transaction and query metrics.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if we should visit the L2 cache metrics.boolean
Return true if we should visit the ORM and SQL query metrics.boolean
Return true if we should visit the transaction metrics.boolean
reset()
Return true if the metrics should be reset.void
visitCount
(MetaCountMetric metric) Visit a Counter metric.void
visitEnd()
Visit has completed.void
visitQuery
(MetaQueryMetric metric) Visit DTO and SQL query metrics.void
Visit has started.void
visitTimed
(MetaTimedMetric metric) Visit transaction metrics (and L2 cache metrics in future).
-
Method Details
-
reset
boolean reset()Return true if the metrics should be reset. -
collectTransactionMetrics
boolean collectTransactionMetrics()Return true if we should visit the transaction metrics. -
collectQueryMetrics
boolean collectQueryMetrics()Return true if we should visit the ORM and SQL query metrics. -
collectL2Metrics
boolean collectL2Metrics()Return true if we should visit the L2 cache metrics. -
visitStart
void visitStart()Visit has started. -
visitTimed
Visit transaction metrics (and L2 cache metrics in future). -
visitQuery
Visit DTO and SQL query metrics. -
visitCount
Visit a Counter metric. -
visitEnd
void visitEnd()Visit has completed.
-