Examples of PhysicalSourceConfig


Examples of com.linkedin.databus2.relay.config.PhysicalSourceConfig

        return _physicalSourcesConfigs.get(index);
      }

      public void setPhysicalSourcesConfigs(int index, PhysicalSourceConfig conf)
      {
        while (_physicalSourcesConfigs.size() <= index) _physicalSourcesConfigs.add(new PhysicalSourceConfig());
        _physicalSourcesConfigs.set(index, conf);
      }
View Full Code Here

Examples of com.linkedin.databus2.relay.config.PhysicalSourceConfig

  private DbusEventBufferMult createBufferMult(DbusEventBuffer.StaticConfig config) throws IOException, InvalidConfigException {
    ObjectMapper mapper = new ObjectMapper();
    InputStreamReader isr = new InputStreamReader(IOUtils.toInputStream(TestDbusEventBufferMult._configSource1));

    PhysicalSourceConfig pConfig1 = mapper.readValue(isr, PhysicalSourceConfig.class);

    isr.close();
    isr = new InputStreamReader(IOUtils.toInputStream(TestDbusEventBufferMult._configSource2));
    PhysicalSourceConfig pConfig2 = mapper.readValue(isr, PhysicalSourceConfig.class);

    PhysicalSourceStaticConfig pStatConf1 = pConfig1.build();
    PhysicalSourceStaticConfig pStatConf2 = pConfig2.build();

    PhysicalSourceStaticConfig[] _physConfigs =  new PhysicalSourceStaticConfig [] {pStatConf1, pStatConf2};

    return new DbusEventBufferMult(_physConfigs, config, new DbusEventV2Factory());
  }
View Full Code Here

Examples of com.linkedin.databus2.relay.config.PhysicalSourceConfig

                                                                  long restartScnOffset,
                                                                  int largestEventSize,
                                                                  long largestWindowSize,
                                                                  LogicalSourceConfig[] lSourceConfigs)
  {
    PhysicalSourceConfig pConfig = new PhysicalSourceConfig();
    pConfig.setId(id);
    pConfig.setName(name);
    pConfig.setUri(uri);
    pConfig.setEventRatePerSec(eventRatePerSec);
    pConfig.setRestartScnOffset(restartScnOffset);
    pConfig.setLargestEventSizeInBytes(largestEventSize);
    pConfig.setLargestWindowSizeInBytes(largestWindowSize);
    BackoffTimerStaticConfigBuilder retriesConf = new BackoffTimerStaticConfigBuilder();
    retriesConf.setInitSleep(pollIntervalMs);
    pConfig.setRetries(retriesConf);

    for(LogicalSourceConfig lConf : lSourceConfigs)
    {
      pConfig.addSource(lConf);
    }

    return pConfig;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.