Package com.dianping.cat.consumer.problem

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

Related Classes of com.dianping.cat.consumer.problem.LongExecutionProblemHandler

Copyright © 2018 www.massapicom. 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.