Search in sources :

Example 1 with FileDropZoneConfiguration

use of co.cask.cdap.file.dropzone.config.FileDropZoneConfiguration 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());
}
Also used : Configuration(co.cask.cdap.filetailer.config.Configuration) FileDropZoneConfiguration(co.cask.cdap.file.dropzone.config.FileDropZoneConfiguration) ObserverConfiguration(co.cask.cdap.file.dropzone.config.ObserverConfiguration) ConfigurationLoaderImpl(co.cask.cdap.filetailer.config.ConfigurationLoaderImpl) ConfigurationLoader(co.cask.cdap.filetailer.config.ConfigurationLoader) FileDropZoneConfigurationImpl(co.cask.cdap.file.dropzone.config.FileDropZoneConfigurationImpl)

Aggregations

FileDropZoneConfiguration (co.cask.cdap.file.dropzone.config.FileDropZoneConfiguration)1 FileDropZoneConfigurationImpl (co.cask.cdap.file.dropzone.config.FileDropZoneConfigurationImpl)1 ObserverConfiguration (co.cask.cdap.file.dropzone.config.ObserverConfiguration)1 Configuration (co.cask.cdap.filetailer.config.Configuration)1 ConfigurationLoader (co.cask.cdap.filetailer.config.ConfigurationLoader)1 ConfigurationLoaderImpl (co.cask.cdap.filetailer.config.ConfigurationLoaderImpl)1