Package com.linkedin.databus.client

Examples of com.linkedin.databus.client.DatabusSourcesConnection$Config


      log.info("start client in parallel");
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + relayPort;
      final CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here


      log.info("now create client");
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + chainedRelayPort;
      final CountingConsumer countingConsumer = new CountingConsumer();
      //Set maxSize to 100K, maxEventSize to 50K
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              100 * 1024 , 10000, 30 * 1000, 100, 30 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      final CountingConsumer countingConsumer = new CountingConsumer();
      //Set maxSize to 100K, maxEventSize to 15k, set init readBufferSize to maxEventSize/2
      int maxEventSize=15*1024;
      int initReadBufferSize=maxEventSize/2;

      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              100 * 1024 , maxEventSize, 30 * 1000, 100, 30 * 1000,
              1, true,initReadBufferSize);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + chainedRelayPort;
      CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = "com.linkedin.events.example.Settings";
      String serverName = "localhost:" + chainedRelayPort;
      CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, -1, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = "com.linkedin.events.example.Settings";
      String serverName = "localhost:" + chainedRelayPort;
      CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + chainedRelayPort;
      CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + chainedRelayPort;
      // create slow consumer with 100ms delay
      CountingConsumer countingConsumer = new CountingConsumer(500);
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 1000, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + chainedRelayPort;
      CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

      // now create client:
      String srcSubscriptionString = TestUtil.join(srcNames[0], ",");
      String serverName = "localhost:" + chainedRelayPort;
      final CountingConsumer countingConsumer = new CountingConsumer();
      DatabusSourcesConnection clientConn = RelayEventProducer
          .createDatabusSourcesConnection("testProducer", serverName,
              srcSubscriptionString, countingConsumer,
              1 * 1024 * 1024, 50000, 30 * 1000, 100, 15 * 1000,
              1, true);
      cr = new ClientRunner(clientConn);
View Full Code Here

TOP

Related Classes of com.linkedin.databus.client.DatabusSourcesConnection$Config

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.