Package com.linkedin.databus.core.monitoring.mbean

Examples of com.linkedin.databus.core.monitoring.mbean.DbusEventsStatisticsCollector.reset()


                                                     Encoding.BINARY, filter1);

    assertEquals(0, result.getNumEventsStreamed(), "There should be no more events in the buffer now");
    assertEquals(0, result.getSizeOfPendingEvent(), "We should not see pending event size since there are no events in buffer");
    baos.reset();
    statsCol1.reset(); statsCol2.reset();

    //read from two buffers, filtering out one
    cpMult1 = new CheckpointMult();
    cp100.init();
    cp100.setConsumptionMode(DbusClientMode.ONLINE_CONSUMPTION);
View Full Code Here


    eventsRead = reader2.streamEvents(false, 1000000, Channels.newChannel(baos),
                                      Encoding.BINARY, filter2).getNumEventsStreamed();
    assertEquals(eventsRead, 6); //1 events + 1 eop + 3events + 1 eop

    baos.reset();
    statsCol1.reset();statsCol2.reset();

    //read all partitions for a source
    DatabusSubscription sub3 =
        new DatabusSubscription(PhysicalSource.MASTER_PHISYCAL_SOURCE,
                                PhysicalPartition.ANY_PHYSICAL_PARTITION,
View Full Code Here

    assertEquals(statsColls1.getStatsCollector("multBufferTest2:101").getTotalStats().getNumSysEvents(), 2);
    assertEquals(statsColls1.getStatsCollector("multBufferTest1:100").getTotalStats().getNumDataEventsFiltered(), 3);
    assertEquals(statsColls1.getStatsCollector("multBufferTest2:101").getTotalStats().getNumDataEventsFiltered(), 4);

    baos.reset();
    statsCol1.reset(); statsCol2.reset();

    log.info("end");
  }

  @Test
View Full Code Here

      srcTestEvents.clear();
      dstTestEvents.clear();
      emitterStats.reset();
      streamStats.reset();
      clientStats.reset();

      assertEquals(0, dstTestEvents.size());
      boolean result = runConstEventsReaderWriter(srcTestEvents, dstTestEvents, testInput, emitterStats,
                                                  streamStats, clientStats, invokeStartOnBuffer);
      LOG.info(String.format("TestId=%d Test=%s  result=%b size of dst events=%d \n",
View Full Code Here

    srcTestEvents.clear();
    dstTestEvents.clear();
    emitterStats.reset()// a.k.a. producer, a.k.a. appender
    streamStats.reset();   // a.k.a. writer (== reader from relay buffer)
    clientStats.reset();   // a.k.a. reader (== writer into client buffer)

    assertEquals(0, dstTestEvents.size());

    assertTrue(runConstEventsReaderWriter(srcTestEvents,dstTestEvents,testInput,emitterStats,streamStats,clientStats));
View Full Code Here

        srcTestEvents.clear();
        dstTestEvents.clear();
        emitterStats.reset();
        streamStats.reset();
        clientStats.reset();

        boolean result = runConstEventsReaderWriter(srcTestEvents, dstTestEvents,
                                                    invalidEventInput, emitterStats,
                                                    streamStats, clientStats);
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.