Class ETLMetricsIntoStore
java.lang.Object
org.epics.archiverappliance.etl.common.ETLMetricsIntoStore
- All Implemented Interfaces:
StorageMetricsContext
ETL metrics for the appliance as a whole into one destination
- Author:
- mshankar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongNote this is an approximation and could be inaccurate.longlonglonglonglonglonglonglonglonglonglonglonggetTotalSpaceFromCache(String rootFolder) longlonggetUsableSpaceFromCache(String rootFolder) doubleGet an estimate of how much time (in percent) over the last week we spent performing ETL for this transition.toString()voidupdateApproximateGlobalLastETLTime(long lastETLTimeWeSpentInETLInMilliSeconds) Update the time taken for the last ETL job.
-
Constructor Details
-
ETLMetricsIntoStore
-
-
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
-
getUsableSpaceFromCache
- Specified by:
getUsableSpaceFromCachein interfaceStorageMetricsContext- Throws:
IOException
-
getTotalSpaceFromCache
- Specified by:
getTotalSpaceFromCachein interfaceStorageMetricsContext- Throws:
IOException
-