Examples of generateEvents()


Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()


      LOG.info("New Batch append 2");
      generator = new DbusEventGenerator(100);
      events = new Vector<DbusEvent>();
      generator.generateEvents(1, 1, 80, 10, events);

      // Add events to the EventBuffer. Now the buffer is full
      appender = new DbusEventAppender(events,dbusBuf,null);
      //Logger.getRootLogger().setLevel(Level.ALL);
      appender.run();
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()


      LOG.info("New Batch append 3");
      generator = new DbusEventGenerator(200);
      events = new Vector<DbusEvent>();
      generator.generateEvents(1, 1, 400, 320, events);

      // Add events to the EventBuffer. Now the buffer is full
      appender = new DbusEventAppender(events,dbusBuf,null);
      //Logger.getRootLogger().setLevel(Level.ALL);
      appender.run();
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

                                        QueuePolicy.OVERWRITE_ON_WRITE, AssertLevel.ALL));
      BufferPositionParser parser = dbusBuf.getBufferPositionParser();
      LOG.info("New Batch append 1");
      DbusEventGenerator generator = new DbusEventGenerator();
      Vector<DbusEvent> events = new Vector<DbusEvent>();
      generator.generateEvents(28, 2, 180, 39, events);

      // Add events to the EventBuffer. Now the buffer is full
      DbusEventAppender appender = new DbusEventAppender(events,dbusBuf,null);
      //Logger.getRootLogger().setLevel(Level.ALL);
      appender.run(); // running in the same thread
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

      assertEquals("Tail Offset", 1627, tailOffset);

      LOG.info("New Batch append 2");
      generator = new DbusEventGenerator(200);
      events = new Vector<DbusEvent>();
      generator.generateEvents(1, 1, 80, 10, events);

      // Add events to the EventBuffer. Now the buffer is full
      appender = new DbusEventAppender(events,dbusBuf,null);
      //Logger.getRootLogger().setLevel(Level.ALL);
      appender.run();
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

      assertEquals("Tail Offset", 1820, tailOffset);

      LOG.info("New Batch append 3");
      generator = new DbusEventGenerator(300);
      events = new Vector<DbusEvent>();
      generator.generateEvents(1, 1, 400, 330, events);

      // Add events to the EventBuffer. Now the buffer is full
      appender = new DbusEventAppender(events,dbusBuf,null);
      //Logger.getRootLogger().setLevel(Level.ALL);
      appender.run();
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

                                      QueuePolicy.OVERWRITE_ON_WRITE,
                                      AssertLevel.ALL));
    BufferPositionParser parser = dbusBuf.getBufferPositionParser();
    DbusEventGenerator generator = new DbusEventGenerator();
    Vector<DbusEvent> events = new Vector<DbusEvent>();
    generator.generateEvents(9, 3, 120, 39, events);

    // Add events to the EventBuffer. Now the buffer is full
    DbusEventAppender appender = new DbusEventAppender(events,dbusBuf,null);
    //Logger.getRootLogger().setLevel(Level.ALL);
    appender.run(); // running in the same thread
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

    /*
     * The event size is carefully created such that after adding 2nd
     * event CWP and tail points to the same location. Now the 3rd event corrupts the EVB and index (in the presence of bug).
     */

    generator.generateEvents(3, 2, 150, 89, events);

    appender = new DbusEventAppender(events,dbusBuf,null);
    appender.run(); // running in the same thread

    LOG.info("Head:" + parser.toString(dbusBuf.getHead()) + ",Tail:" + parser.toString(dbusBuf.getTail()));
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

        new DbusEventBuffer(getConfig(1145,5000,100,500,AllocationPolicy.HEAP_MEMORY,
                                      QueuePolicy.OVERWRITE_ON_WRITE, AssertLevel.ALL));
    BufferPositionParser parser = dbusBuf.getBufferPositionParser();
    DbusEventGenerator generator = new DbusEventGenerator();
    Vector<DbusEvent> events = new Vector<DbusEvent>();
    generator.generateEvents(9, 3, 120, 39, events);

    // Add events to the EventBuffer. Now the buffer is full
    DbusEventAppender appender = new DbusEventAppender(events,dbusBuf,null);
    appender.run(); // running in the same thread
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

    generator = new DbusEventGenerator(1000);
    /*
     * The event size is carefully created such that after adding 2nd
     * event CWP and tail points to the same location. Now the 3rd event corrupts the EVB and index (in the presence of bug).
     */
    generator.generateEvents(3, 2, 150, 89, events);

    appender = new DbusEventAppender(events,dbusBuf,null);
    LOG.info("1");
    //Logger.getRootLogger().setLevel(Level.ALL);
    appender.run(); // running in the same thread
View Full Code Here

Examples of com.linkedin.databus.core.test.DbusEventGenerator.generateEvents()

        new DbusEventBuffer(getConfig(1145,5000,100,500,AllocationPolicy.HEAP_MEMORY,
                                      QueuePolicy.OVERWRITE_ON_WRITE, AssertLevel.ALL));
    BufferPositionParser parser = dbusBuf.getBufferPositionParser();
    DbusEventGenerator generator = new DbusEventGenerator();
    Vector<DbusEvent> events = new Vector<DbusEvent>();
    generator.generateEvents(9, 3, 120, 39, events);

    // Add events to the EventBuffer. Now the buffer is full
    DbusEventAppender appender = new DbusEventAppender(events,dbusBuf,null);
    appender.run(); // running in the same thread
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.