use of co.cask.cdap.file.dropzone.config.FileDropZoneConfigurationImpl in project cdap-ingest by caskdata.
the class PollingServiceManager method getConfiguration.
/**
* Return DropZone configuration
*
* @return DropZone configuration
* @throws ConfigurationLoadingException if configuration load failed
*/
private FileDropZoneConfiguration getConfiguration() throws ConfigurationLoadingException {
ConfigurationLoader loader = new ConfigurationLoaderImpl();
Configuration configuration = loader.load(confFile);
return new FileDropZoneConfigurationImpl(configuration.getProperties());
}
use of co.cask.cdap.file.dropzone.config.FileDropZoneConfigurationImpl in project cdap-ingest by caskdata.
the class FileDropZoneIT method loadConfig.
private ObserverConfiguration loadConfig(File file) throws ConfigurationLoadingException {
ConfigurationLoader loader = new ConfigurationLoaderImpl();
Configuration configuration = loader.load(file);
List<ObserverConfiguration> observerConfig = new FileDropZoneConfigurationImpl(configuration.getProperties()).getObserverConfiguration();
return observerConfig.get(0);
}
Aggregations