Package com.mapr.baseutils.metric
Interface MetricRepo
-
- All Known Implementing Classes:
JobMetricRepo,MetricRepoBase,NodeMetricRepo,TaskAttemptMetricRepo,TaskMetricRepo
public interface MetricRepoInterface to perform all DB operations to insert/update data in DB
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMetricRepo.MetricType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecuteDBOperations(java.sql.Connection dbConnection)com.mapr.fs.proto.clustermetrics.ClusterMetricsProto.MetricAttributesgetMetricAttributes()MetricRepo.MetricTypegetMetricType()java.util.List<com.mapr.fs.proto.clustermetrics.ClusterMetricsProto.Pair>prepareEvents()booleanprepareMetricAttrs(java.sql.PreparedStatement insertStmt, long time)java.util.List<com.mapr.fs.proto.clustermetrics.ClusterMetricsProto.Counters>prepareTransactions()
-
-
-
Method Detail
-
prepareTransactions
java.util.List<com.mapr.fs.proto.clustermetrics.ClusterMetricsProto.Counters> prepareTransactions()
-
prepareEvents
java.util.List<com.mapr.fs.proto.clustermetrics.ClusterMetricsProto.Pair> prepareEvents()
-
getMetricAttributes
com.mapr.fs.proto.clustermetrics.ClusterMetricsProto.MetricAttributes getMetricAttributes()
-
getMetricType
MetricRepo.MetricType getMetricType()
-
executeDBOperations
void executeDBOperations(java.sql.Connection dbConnection) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
prepareMetricAttrs
boolean prepareMetricAttrs(java.sql.PreparedStatement insertStmt, long time) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-