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 Summary
Constructors Constructor Description ETLMetricsForLifetime(int lifeTimeId)
-
Method Summary
Modifier and Type Method Description long
getApproximateLastGlobalETLTimeInMillis()
Note this is an approximation and could be inaccurate.FileStore
getFileStore(String rootFolder)
int
getLifeTimeId()
long
getStartOfMetricsMeasurementInEpochSeconds()
long
getTimeForOverallETLInMilliSeconds()
long
getTimeinMillSecond4appendToETLAppendData()
long
getTimeinMillSecond4checkSizes()
long
getTimeinMillSecond4commitETLAppendData()
long
getTimeinMillSecond4executePostETLTasks()
long
getTimeinMillSecond4getETLStreams()
long
getTimeinMillSecond4markForDeletion()
long
getTimeinMillSecond4prepareForNewPartition()
long
getTimeinMillSecond4runPostProcessors()
long
getTotalETLRuns()
long
getTotalSrcBytes()
double
getWeeklyETLUsageInPercent()
Get an estimate of how much time (in percent) over the last week we spent performing ETL for this transition.void
updateApproximateGlobalLastETLTime(long lastETLTimeWeSpentInETLInMilliSeconds)
Update the time taken for the last ETL job.
-
-
-
Method Detail
-
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 interfaceStorageMetricsContext
- Throws:
IOException
-
-