- All Known Implementing Classes:
AbstractMetricVisitor,BasicMetricVisitor
public interface MetricVisitor
Defines visitor to read and report the transaction and query metrics.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if we should visit the L2 cache metrics.booleanReturn true if we should visit the ORM and SQL query metrics.booleanReturn true if we should visit the transaction metrics.Return the naming convention that should be applied to the reported metric names.booleanreset()Return true if the metrics should be reset.voidvisitCount(MetaCountMetric metric) Visit a Counter metric.voidvisitEnd()Visit has completed.voidvisitQuery(MetaQueryMetric metric) Visit DTO and SQL query metrics.voidVisit has started.voidvisitTimed(MetaTimedMetric metric) Visit transaction metrics (and L2 cache metrics in future).
-
Method Details
-
namingConvention
Return the naming convention that should be applied to the reported metric names. -
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.
-