◆ checkNextUpdate()
| DataFileUpdateService::checkNextUpdate | ( | dataFile | ) |
inline
Internal method to check the next update of a datafile at a polling interval set on the datafile.
- Parameters
-
- {DataFile} - dataFile the datafile to check updates for
◆ constructor()
DataFileUpdateService::constructor ( pipeline ) inlineConstructor for a DataFileUpdateService.
- Parameters
-
- {Pipeline} - [pipeline] pipeline the update service is attached to
@type {EventEmitter}
◆ fileReady()
DataFileUpdateService::fileReady ( dataFile, filename ) inlineInternal method called when the datafile has been downloaded and is ready after an update.
- Parameters
-
- {DataFile} - dataFile the datafile that is ready
- {string} - filename the filename of the updated datafile
- Returns
- {void}
◆ on()
DataFileUpdateService::on ( listener, callback ) inlineEventEmitter's 'on' delegation.
- Parameters
-
- {string - | symbol} listener listener
- {Function} - callback callback
◆ once()
DataFileUpdateService::once ( listener, callback ) inlineEventEmitter's 'once' delegation.
- Parameters
-
- {string - | symbol} listener listener
- {Function} - callback callback
◆ processFile()
DataFileUpdateService::processFile ( dataFile, filename ) inlineInternal method to process the datafile has been downloaded Including unzipping if needed.
- Parameters
-
- {DataFile} - dataFile the datafile to processs
- {string} - filename the filename of the downloaded data
◆ registerDataFile()
DataFileUpdateService::registerDataFile ( dataFile ) inlineMethod that registers a datafile with the update service.
- Parameters
-
- {DataFile} - dataFile the datafile to register
◆ registerPipeline()
DataFileUpdateService::registerPipeline ( pipeline ) inlineMethod to register a pipeline with the update service.
- Parameters
-
- {Pipeline} - [pipeline] Pipeline to register
◆ updateDataFile()
DataFileUpdateService::updateDataFile ( dataFile ) inlineMethod that updates a datafile when it is due an update.
- Parameters
-
- {DataFile} - dataFile the datafile to update
- Returns
- {boolean | void} returns false if already updating or request failed
