Examples of streamSnapShotRows()


Examples of com.linkedin.databus.bootstrap.server.BootstrapProcessor.streamSnapShotRows()

      c.setConsumptionMode(DbusClientMode.BOOTSTRAP_SNAPSHOT);
          c.setBootstrapStartScn(Long.MAX_VALUE - 10);
      c.setSnapshotOffset(Long.MAX_VALUE - 1000);
      // System.out.println("Snapshot");
      processor.streamSnapShotRows(c, processorCallback);
      Assert.assertEquals(processorCallback.getrIds().size(), 1);
      Assert.assertEquals(Long.MAX_VALUE-10, processorCallback.getrIds().get(0).longValue());
      Assert.assertEquals(Long.MAX_VALUE-100, processorCallback.getSequences().get(0).longValue());
      Assert.assertEquals("check", processorCallback.getSrcKeys().get(0));
      Assert.assertEquals("test_payload_data", new String(processorCallback.getValues().get(0)));
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.