Class ETLMetricsIntoStore

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

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

    • ETLMetricsIntoStore

      public ETLMetricsIntoStore(String destName)
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUsableSpaceFromCache

      public long getUsableSpaceFromCache(String rootFolder) throws IOException
      Specified by:
      getUsableSpaceFromCache in interface StorageMetricsContext
      Throws:
      IOException
    • getTotalSpaceFromCache

      public long getTotalSpaceFromCache(String rootFolder) throws IOException
      Specified by:
      getTotalSpaceFromCache in interface StorageMetricsContext
      Throws:
      IOException