Package com.jitlogic.zorka.core.perfmon

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


  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

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.