java.lang.Object
io.ebean.meta.AbstractMetricVisitor
- All Implemented Interfaces:
MetricVisitor
- Direct Known Subclasses:
BasicMetricVisitor
An abstract MetricVisitor that handles the boolean flags - reset, collectTransactionMetrics and collectQueryMetrics.
-
Constructor Summary
ConstructorDescriptionAbstractMetricVisitor
(boolean reset, boolean collectTransactionMetrics, boolean collectQueryMetrics, boolean collectL2Metrics) -
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
visitEnd()
Visit has completed.void
Visit has started.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.ebean.meta.MetricVisitor
visitCount, visitQuery, visitTimed
-
Constructor Details
-
AbstractMetricVisitor
public AbstractMetricVisitor(boolean reset, boolean collectTransactionMetrics, boolean collectQueryMetrics, boolean collectL2Metrics)
-
-
Method Details
-
reset
public boolean reset()Description copied from interface:MetricVisitor
Return true if the metrics should be reset.- Specified by:
reset
in interfaceMetricVisitor
-
collectTransactionMetrics
public boolean collectTransactionMetrics()Description copied from interface:MetricVisitor
Return true if we should visit the transaction metrics.- Specified by:
collectTransactionMetrics
in interfaceMetricVisitor
-
collectQueryMetrics
public boolean collectQueryMetrics()Description copied from interface:MetricVisitor
Return true if we should visit the ORM and SQL query metrics.- Specified by:
collectQueryMetrics
in interfaceMetricVisitor
-
collectL2Metrics
public boolean collectL2Metrics()Description copied from interface:MetricVisitor
Return true if we should visit the L2 cache metrics.- Specified by:
collectL2Metrics
in interfaceMetricVisitor
-
visitStart
public void visitStart()Description copied from interface:MetricVisitor
Visit has started.- Specified by:
visitStart
in interfaceMetricVisitor
-
visitEnd
public void visitEnd()Description copied from interface:MetricVisitor
Visit has completed.- Specified by:
visitEnd
in interfaceMetricVisitor
-