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