Class ETLMetricsForLifetime

java.lang.Object
org.epics.archiverappliance.etl.common.ETLMetricsForLifetime
All Implemented Interfaces:
StorageMetricsContext

public class ETLMetricsForLifetime extends Object implements StorageMetricsContext
ETL metrics for the appliance as a whole for one lifetime
Author:
mshankar
  • Constructor Details

    • ETLMetricsForLifetime

      public ETLMetricsForLifetime(int lifeTimeId)
  • Method Details

    • getLifeTimeId

      public int getLifeTimeId()
    • getTotalETLRuns

      public long getTotalETLRuns()
    • getTimeForOverallETLInMilliSeconds

      public long getTimeForOverallETLInMilliSeconds()
    • getStartOfMetricsMeasurementInEpochSeconds

      public long getStartOfMetricsMeasurementInEpochSeconds()
    • getTimeinMillSecond4appendToETLAppendData

      public long getTimeinMillSecond4appendToETLAppendData()
    • getTimeinMillSecond4commitETLAppendData

      public long getTimeinMillSecond4commitETLAppendData()
    • getTimeinMillSecond4executePostETLTasks

      public long getTimeinMillSecond4executePostETLTasks()
    • getTimeinMillSecond4getETLStreams

      public long getTimeinMillSecond4getETLStreams()
    • getTimeinMillSecond4markForDeletion

      public long getTimeinMillSecond4markForDeletion()
    • getTimeinMillSecond4prepareForNewPartition

      public long getTimeinMillSecond4prepareForNewPartition()
    • getTimeinMillSecond4runPostProcessors

      public long getTimeinMillSecond4runPostProcessors()
    • getTimeinMillSecond4checkSizes

      public long getTimeinMillSecond4checkSizes()
    • getTotalSrcBytes

      public long getTotalSrcBytes()
    • updateApproximateGlobalLastETLTime

      public void updateApproximateGlobalLastETLTime(long lastETLTimeWeSpentInETLInMilliSeconds)
      Update the time taken for the last ETL job. Note this is an approximation.
      Parameters:
      lastETLTimeWeSpentInETLInMilliSeconds -  
    • getApproximateLastGlobalETLTimeInMillis

      public long getApproximateLastGlobalETLTimeInMillis()
      Note this is an approximation and could be inaccurate.
      Returns:
      the approximateLastGlobalETLTime
    • getWeeklyETLUsageInPercent

      public double getWeeklyETLUsageInPercent()
      Get an estimate of how much time (in percent) over the last week we spent performing ETL for this transition.
      Returns:
      time estimated over the last week
    • getFileStore

      public FileStore getFileStore(String rootFolder) throws IOException
      Specified by:
      getFileStore in interface StorageMetricsContext
      Throws:
      IOException