Package com.linkedin.databus.bootstrap.common

Examples of com.linkedin.databus.bootstrap.common.BootstrapReadOnlyConfig


    BootstrapConfig config = new BootstrapConfig();

    ConfigLoader<BootstrapReadOnlyConfig> configLoader =
        new ConfigLoader<BootstrapReadOnlyConfig>("bootstrap.", config);

    BootstrapReadOnlyConfig staticConfig = configLoader.loadConfig(_sBootstrapConfigProps);
    Config cfg = new Config();
    cfg.setDbConfig(staticConfig);
    cfg.setSrcId(srcId);
    cfg.setSrcName(srcName);
    return cfg;
View Full Code Here


    BootstrapConfig cfgBuilder = new BootstrapConfig();
    ConfigLoader<BootstrapReadOnlyConfig> configLoad =
        new ConfigLoader<BootstrapReadOnlyConfig>("databus.bootstrap.", cfgBuilder);
    configLoad.loadConfig(cfgProps);

    BootstrapReadOnlyConfig cfg = cfgBuilder.build();
    BootstrapConn conn = new BootstrapConn();
    try
    {
      conn.initBootstrapConn(true, cfg.getBootstrapDBUsername(), cfg.getBootstrapDBPassword(),
                             cfg.getBootstrapDBHostname(), cfg.getBootstrapDBName());
      BootstrapDBMetaDataDAO dao = new BootstrapDBMetaDataDAO(conn,           
                      cfg.getBootstrapDBHostname(),
                      cfg.getBootstrapDBUsername(),
                      cfg.getBootstrapDBPassword(),
                      cfg.getBootstrapDBName(),
                      false);
      switch (cli.getAction())
      {
      case CREATE_LOG_TABLE: dao.createNewLogTable(cli.getSrcId()); break;
      case CREATE_TAB_TABLE: dao.createNewSrcTable(cli.getSrcId()); break;
View Full Code Here

    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();
  }
View Full Code Here

        throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, IOException,
               BootstrapProcessingException, DatabusException, BootstrapDatabaseTooOldException, BootstrapDBException
      {
      EventProcessor processorCallback = new EventProcessor();
      BootstrapConfig config = new BootstrapConfig();
      BootstrapReadOnlyConfig staticConfig = config.build();

          BootstrapServerConfig configBuilder = new BootstrapServerConfig();
          configBuilder.setEnableMinScnCheck(false);
          BootstrapServerStaticConfig staticServerConfig = configBuilder.build();

      BootstrapProcessor processor = new BootstrapProcessor(staticServerConfig, null);
      String sourceName = "TestBootstrap.testBootstrapProcessor.events";

      // Create the tables for all the sources before starting up the threads

      BootstrapConn _bootstrapConn = new BootstrapConn();
      boolean autoCommit = true;
      _bootstrapConn.initBootstrapConn(autoCommit,
          staticConfig.getBootstrapDBUsername(),
          staticConfig.getBootstrapDBPassword(),
          staticConfig.getBootstrapDBHostname(),
          staticConfig.getBootstrapDBName());

      BootstrapDBMetaDataDAO dao = new BootstrapDBMetaDataDAO(_bootstrapConn,
                            staticConfig.getBootstrapDBHostname(),
                            staticConfig.getBootstrapDBUsername(),
                            staticConfig.getBootstrapDBPassword(),
                            staticConfig.getBootstrapDBName(),
                            autoCommit);
      SourceStatusInfo srcStatusInfo = dao.getSrcIdStatusFromDB(sourceName, false);

      if (srcStatusInfo.getSrcId() >= 0 )
      {
View Full Code Here

               BootstrapProcessingException, DatabusException, BootstrapDatabaseTooOldException, BootstrapDBException
    {
        final Logger log = Logger.getLogger("TestBootstrap.testBootstrapService");
      EventProcessor processorCallback = new EventProcessor();
      BootstrapConfig config = new BootstrapConfig();
      BootstrapReadOnlyConfig staticConfig = config.build();


      String sources[] = new String[4];
      sources[0] = "TestBootstrap.testBootstrapService.event";
      sources[1] = "TestBootstrap.testBootstrapService.event1";
      sources[2] = "TestBootstrap.testBootstrapService.event2";
      sources[3] = "TestBootstrap.testBootstrapService.event3";

      // Create the tables for all the sources before starting up the threads
      BootstrapConn _bootstrapConn = new BootstrapConn();
      final boolean autoCommit = true;
      _bootstrapConn.initBootstrapConn(autoCommit,
          staticConfig.getBootstrapDBUsername(),
          staticConfig.getBootstrapDBPassword(),
          staticConfig.getBootstrapDBHostname(),
          staticConfig.getBootstrapDBName());

      BootstrapDBMetaDataDAO dao = new BootstrapDBMetaDataDAO(_bootstrapConn,
                          staticConfig.getBootstrapDBHostname(),
                          staticConfig.getBootstrapDBUsername(),
                          staticConfig.getBootstrapDBPassword(),
                          staticConfig.getBootstrapDBName(),
                          autoCommit);

      for (String source : sources)
      {
        SourceStatusInfo srcStatusInfo = dao.getSrcIdStatusFromDB(source, false);
View Full Code Here

    Map<String, Long> rowsThresholdForSnapshotBypass = new HashMap<String, Long>();
    Map<String, Boolean> disableSnapshotBypass = new HashMap<String, Boolean>();
    boolean predicatePushDown = false;
    Map<String, Boolean> predicatePushDownBypass = new HashMap<String, Boolean>();
    int queryTimeoutInSec = 10;
    BootstrapReadOnlyConfig db = null;
    boolean enableMinScnCheck=false;
    final long longestDbTxnTimeMins = 240L;

    BootstrapServerStaticConfig bssc = new BootstrapServerStaticConfig(defaultRowsThresholdForSnapshotBypass,
                                                                       rowsThresholdForSnapshotBypass,
View Full Code Here

TOP

Related Classes of com.linkedin.databus.bootstrap.common.BootstrapReadOnlyConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.