Package com.mapr.baseutils.metric
Class MetricRepoBase
- java.lang.Object
-
- com.mapr.baseutils.metric.MetricRepoBase
-
- All Implemented Interfaces:
MetricRepo
- Direct Known Subclasses:
JobMetricRepo,NodeMetricRepo,TaskAttemptMetricRepo,TaskMetricRepo
public abstract class MetricRepoBase extends java.lang.Object implements MetricRepo
Base DB insertion class to consolidate common to all different metrics operations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.mapr.baseutils.metric.MetricRepo
MetricRepo.MetricType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringclusterId
-
Constructor Summary
Constructors Constructor Description MetricRepoBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClusterId()booleanprepareMetricAttrs(java.sql.PreparedStatement insertStmt, long time)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.mapr.baseutils.metric.MetricRepo
executeDBOperations, getMetricAttributes, getMetricType, prepareEvents, prepareTransactions
-
-
-
-
Method Detail
-
prepareMetricAttrs
public boolean prepareMetricAttrs(java.sql.PreparedStatement insertStmt, long time) throws java.sql.SQLException- Specified by:
prepareMetricAttrsin interfaceMetricRepo- Throws:
java.sql.SQLException
-
getClusterId
public java.lang.String getClusterId()
-
-