Class ETLJob
- java.lang.Object
-
- org.epics.archiverappliance.etl.common.ETLJob
-
-
Constructor Summary
Constructors Constructor Description ETLJob(ETLPVLookupItems lookupItem)
ETLJob(ETLPVLookupItems lookupItem, Timestamp runAsIfAtTime)
Mostly used by ETL unit tests.
-
Method Summary
Modifier and Type Method Description Exception
getExceptionFromLastRun()
Was there an exception in the last ETL run for this job Mostly used by unit tests.void
processETL(Timestamp processingTime)
Main ETL algorithm.void
run()
-
-
-
Constructor Detail
-
ETLJob
public ETLJob(ETLPVLookupItems lookupItem)
-
ETLJob
public ETLJob(ETLPVLookupItems lookupItem, Timestamp runAsIfAtTime)
Mostly used by ETL unit tests.- Parameters:
lookupItem
- ETLPVLookupItemsrunAsIfAtTime
- Timestamp
-
-
Method Detail
-
processETL
public void processETL(Timestamp processingTime) throws IOException
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
public Exception getExceptionFromLastRun()
Was there an exception in the last ETL run for this job Mostly used by unit tests.- Returns:
- exceptionFromLastRun
-
-