Search in sources :

Example 6 with BootstrapConfig

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

the class BootstrapDropSource method main.

/**
 * @param args
 */
public static void main(String[] args) throws Exception {
    int srcId = parseArgs(args);
    BootstrapConfig config = new BootstrapConfig();
    ConfigLoader<BootstrapReadOnlyConfig> configLoader = new ConfigLoader<BootstrapReadOnlyConfig>("bootstrap.", config);
    BootstrapReadOnlyConfig staticConfig = configLoader.loadConfig(_sBootstrapConfigProps);
    BootstrapDropSource cleaner = new BootstrapDropSource(staticConfig, srcId);
    cleaner.cleanup();
}
Also used : BootstrapReadOnlyConfig(com.linkedin.databus.bootstrap.common.BootstrapReadOnlyConfig) ConfigLoader(com.linkedin.databus.core.util.ConfigLoader) BootstrapConfig(com.linkedin.databus.bootstrap.common.BootstrapConfig)

Aggregations

BootstrapConfig (com.linkedin.databus.bootstrap.common.BootstrapConfig)6 BootstrapReadOnlyConfig (com.linkedin.databus.bootstrap.common.BootstrapReadOnlyConfig)6 ConfigLoader (com.linkedin.databus.core.util.ConfigLoader)4 BootstrapConn (com.linkedin.databus.bootstrap.common.BootstrapConn)3 BootstrapDBMetaDataDAO (com.linkedin.databus.bootstrap.common.BootstrapDBMetaDataDAO)3 SourceStatusInfo (com.linkedin.databus.bootstrap.common.BootstrapDBMetaDataDAO.SourceStatusInfo)2 Checkpoint (com.linkedin.databus.core.Checkpoint)2 Properties (java.util.Properties)2 Test (org.testng.annotations.Test)2 BootstrapCleanerConfig (com.linkedin.databus.bootstrap.common.BootstrapCleanerConfig)1 BootstrapCleanerStaticConfig (com.linkedin.databus.bootstrap.common.BootstrapCleanerStaticConfig)1 BootstrapDBCleaner (com.linkedin.databus.bootstrap.common.BootstrapDBCleaner)1 BootstrapProcessor (com.linkedin.databus.bootstrap.server.BootstrapProcessor)1 BootstrapServerConfig (com.linkedin.databus.bootstrap.server.BootstrapServerConfig)1 BootstrapServerStaticConfig (com.linkedin.databus.bootstrap.server.BootstrapServerStaticConfig)1 BootstrapCheckpointHandler (com.linkedin.databus.core.BootstrapCheckpointHandler)1 FileInputStream (java.io.FileInputStream)1 CommandLine (org.apache.commons.cli.CommandLine)1 CommandLineParser (org.apache.commons.cli.CommandLineParser)1 GnuParser (org.apache.commons.cli.GnuParser)1