Examples of feed()


Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  @Test
  public void testWindowNotYetSlide() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 100);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(100.0, wnd.rate(), 0.0001);
  }

  @Test
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  public void testWindowNotYetSlide() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 100);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(100.0, wnd.rate(), 0.0001);
  }

  @Test
  public void testWindowSlide() throws Exception {
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  @Test
  public void testWindowSlide() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 150);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(50.0, wnd.rate(), 0.0001);
  }
 
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  @Test
  public void testWindowSlide() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 150);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(50.0, wnd.rate(), 0.0001);
  }
 
  @Test
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  public void testWindowSlide() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 150);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(50.0, wnd.rate(), 0.0001);
  }
 
  @Test
  public void testWindowSlideOutOfHorizon() throws Exception {
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

 
  @Test
  public void testWindowSlideOutOfHorizon() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 1500);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(-1.0, wnd.rate(), 0.0001);   
  }
}
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  @Test
  public void testWindowSlideOutOfHorizon() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 1500);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(-1.0, wnd.rate(), 0.0001);   
  }
}
View Full Code Here

Examples of com.jitlogic.zorka.core.perfmon.RateAggregate.feed()

  public void testWindowSlideOutOfHorizon() throws Exception {
    RateAggregate wnd = new RateAggregate(100, -1);
    testUtil.mockCurrentTimeMillis(0, 0, 50, 50, 100, 100, 1500);
    wnd.feed(100);
    wnd.feed(150);
    wnd.feed(200);
    assertEquals(-1.0, wnd.rate(), 0.0001);   
  }
}
View Full Code Here

Examples of fr.neatmonster.nocheatplus.utilities.ds.prefixtree.SimpleCharPrefixTree.feed()

     * @return
     */
  public static ConfigFile removePaths(final ConfigFile config, final Collection<String> removePaths) {
      final SimpleCharPrefixTree prefixes = new SimpleCharPrefixTree();
      for (final String path : removePaths){
        prefixes.feed(path);
      }
      final ConfigFile newConfig = new ConfigFile();
      for (final Entry<String, Object> entry : config.getValues(true).entrySet()){
        final String path = entry.getKey();
        final Object value = entry.getValue();
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.DigesterFacesConfigDispenserImpl.feed()

                .getFacesConfigurationProviderFactory(externalContext).getFacesConfigurationProvider(externalContext);

        FacesConfigDispenser dispenser = new DigesterFacesConfigDispenserImpl();

        // standard-faces-config.xml
        dispenser.feed(facesConfigProvider.getStandardFacesConfig(externalContext));

        // META-INF/services/[factory name] factory definitions
        dispenser.feed(facesConfigProvider.getMetaInfServicesFacesConfig(externalContext));

        // WEB-INF/faces-config.xml
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.