Examples of LongExecutionProblemHandler


Examples of com.dianping.cat.consumer.problem.LongExecutionProblemHandler

  private Map<String, Integer> m_longUrlThresholds = new HashMap<String, Integer>();

  @Test
  public void testHandler() {
    m_handler = new LongExecutionProblemHandler();

    for (int i = 0; i < 1000; i++) {
      Assert.assertEquals(-1, m_handler.computeLongDuration(i, "domain", m_defaultLongUrlDuration, m_longUrlThresholds));
    }
    for (int i = 1000; i < 2000; i++) {
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.