Package hirondelle.web4j.util

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


    addToRequest("responseEncoding", getResponseEncoding(aResponse));
    fLogger.fine("Adding cookies.");
    addToRequest("cookies", getCookies(aRequest));
   
    fLogger.fine("Finished retrieving data.");
    stopwatch.stop();
    addToRequest("stopwatch", stopwatch.toString());
  }
 
  private ServletContext getContext(HttpServletRequest aRequest){
    return getExistingSession().getServletContext();
View Full Code Here


    Stopwatch stopwatch = new Stopwatch();
    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) ) {
View Full Code Here

    tryDatabaseInitAndStartupTasks();
    fLogger.fine("Database init and startup tasks completed " + stopwatch + " after start.");
   
    CheckModelObjects checkModelObjects = new CheckModelObjects();
    checkModelObjects.performChecks();
    stopwatch.stop();
    fLogger.fine("Cross-Site Scripting scan completed " + stopwatch + " after start.");
   
    fLogger.config("*** SUCCESS : STARTUP COMPLETED SUCCESSFULLY. *** Total startup time : " + stopwatch );
  }

View Full Code Here

      //Bugs OR rare conditions, for example datastore failure
      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

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.