use of com.linkedin.databus.bootstrap.common.BootstrapCleanerConfig 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();
}
Aggregations