Class MeterLogManager

  • All Implemented Interfaces:
    Session

    public class MeterLogManager
    extends AbstractManager
    Author:
    Daniel Meyer
    • Constructor Detail

      • MeterLogManager

        public MeterLogManager()
    • Method Detail

      • isEndTimeAfterLastReportInterval

        protected boolean isEndTimeAfterLastReportInterval​(MetricsQueryImpl query)
      • shouldAddCurrentUnloggedCount

        protected boolean shouldAddCurrentUnloggedCount​(MetricsQueryImpl query)
      • deleteAll

        public void deleteAll()
      • deleteByTimestampAndReporter

        public void deleteByTimestampAndReporter​(Date timestamp,
                                                 String reporter)
      • findUniqueTaskWorkerCount

        public long findUniqueTaskWorkerCount​(Date startTime,
                                              Date endTime)
      • deleteTaskMetricsByTimestamp

        public void deleteTaskMetricsByTimestamp​(Date timestamp)
      • deleteTaskMetricsById

        public void deleteTaskMetricsById​(List<String> taskMetricIds)
      • deleteTaskMetricsByRemovalTime

        public DbOperation deleteTaskMetricsByRemovalTime​(Date currentTimestamp,
                                                          Integer timeToLive,
                                                          int minuteFrom,
                                                          int minuteTo,
                                                          int batchSize)
      • findTaskMetricsForCleanup

        public List<String> findTaskMetricsForCleanup​(int batchSize,
                                                      Integer timeToLive,
                                                      int minuteFrom,
                                                      int minuteTo)