Package hirondelle.web4j.util

Examples of hirondelle.web4j.util.Stopwatch.toValue()


    stopwatch.start();
   
    aChain.doFilter(aRequest, aResponse);
   
    stopwatch.stop();
    addResponseTime(stopwatch.toValue(), aRequest);
    //fLogger.fine(fPerformanceHistory.toString());
    fLogger.fine("END PerformanceMonitor Filter. Response Time: " + stopwatch);
  }

  /**
 
View Full Code Here


    catch (IOException ex) {
      problem = "Cannot open connection to the URL : " + fTargetURL;
    }
   
    stopwatch.stop();
    if( stopwatch.toValue() > fTimeout * 1000) {
      problem = problem + "Response took too long : " + stopwatch;
    }
   
    if( Util.textHasContent(problem) ) {
      mailTroubleTicket(problem);
View Full Code Here

      logAndEmailSeriousProblem(ex, aRequest);
      aResponse.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
    }
   
    stopwatch.stop();
    if ( stopwatch.toValue() >= fPOOR_PERFORMANCE_THRESHOLD ) {
      logAndEmailPerformanceProblem(stopwatch.toValue(), aRequest);
    }
  }

  /**
 
View Full Code Here

      aResponse.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
    }
   
    stopwatch.stop();
    if ( stopwatch.toValue() >= fPOOR_PERFORMANCE_THRESHOLD ) {
      logAndEmailPerformanceProblem(stopwatch.toValue(), aRequest);
    }
  }

  /**
   Change the {@link ResponsePage} according to {@link Locale}.
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.