Class ETLJob
java.lang.Object
org.epics.archiverappliance.etl.common.ETLJob
- All Implemented Interfaces:
Runnable
We schedule a ETLPVLookupItems with the appropriate thread using an ETLJob
- Author:
- mshankar
-
Constructor Summary
ConstructorsConstructorDescriptionETLJob(ETLPVLookupItems lookupItem) ETLJob(ETLPVLookupItems lookupItem, Instant runAsIfAtTime) Mostly used by ETL unit tests. -
Method Summary
Modifier and TypeMethodDescriptionWas there an exception in the last ETL run for this job Mostly used by unit tests.voidprocessETL(Instant processingTime) Main ETL algorithm.voidrun()
-
Constructor Details
-
ETLJob
-
ETLJob
Mostly used by ETL unit tests.- Parameters:
lookupItem- ETLPVLookupItemsrunAsIfAtTime- Instant
-
-
Method Details
-
run
public void run() -
processETL
Main ETL algorithm.- Parameters:
processingTime- Typically we'd use TimeUtils.now() for this. However, we can also run as if it's a certain time by using this parameter.- Throws:
IOException-
-
getExceptionFromLastRun
Was there an exception in the last ETL run for this job Mostly used by unit tests.- Returns:
- exceptionFromLastRun
-