Search in sources :

Example 1 with BootstrapCleanerStaticConfig

use of com.linkedin.databus.bootstrap.common.BootstrapCleanerStaticConfig in project databus by linkedin.

the class BootstrapDBCleanerMain method main.

/**
   * @param args
   */
public static void main(String[] args) throws Exception {
    parseArgs(args);
    BootstrapCleanerConfig config = new BootstrapCleanerConfig();
    BootstrapConfig bsConfig = new BootstrapConfig();
    ConfigLoader<BootstrapCleanerStaticConfig> configLoader = new ConfigLoader<BootstrapCleanerStaticConfig>("databus.bootstrap.cleaner.", config);
    ConfigLoader<BootstrapReadOnlyConfig> configLoader2 = new ConfigLoader<BootstrapReadOnlyConfig>("databus.bootstrap.db.", bsConfig);
    _sCleanerConfig = configLoader.loadConfig(_sBootstrapConfigProps);
    _sBootstrapConfig = configLoader2.loadConfig(_sBootstrapConfigProps);
    BootstrapDBCleaner cleaner = new BootstrapDBCleaner("StandAloneCleaner", _sCleanerConfig, _sBootstrapConfig, null, _sSources);
    cleaner.doClean();
}
Also used : BootstrapReadOnlyConfig(com.linkedin.databus.bootstrap.common.BootstrapReadOnlyConfig) BootstrapCleanerStaticConfig(com.linkedin.databus.bootstrap.common.BootstrapCleanerStaticConfig) BootstrapDBCleaner(com.linkedin.databus.bootstrap.common.BootstrapDBCleaner) ConfigLoader(com.linkedin.databus.core.util.ConfigLoader) BootstrapConfig(com.linkedin.databus.bootstrap.common.BootstrapConfig) BootstrapCleanerConfig(com.linkedin.databus.bootstrap.common.BootstrapCleanerConfig)

Aggregations

BootstrapCleanerConfig (com.linkedin.databus.bootstrap.common.BootstrapCleanerConfig)1 BootstrapCleanerStaticConfig (com.linkedin.databus.bootstrap.common.BootstrapCleanerStaticConfig)1 BootstrapConfig (com.linkedin.databus.bootstrap.common.BootstrapConfig)1 BootstrapDBCleaner (com.linkedin.databus.bootstrap.common.BootstrapDBCleaner)1 BootstrapReadOnlyConfig (com.linkedin.databus.bootstrap.common.BootstrapReadOnlyConfig)1 ConfigLoader (com.linkedin.databus.core.util.ConfigLoader)1