Package hirondelle.web4j.webmaster

Examples of hirondelle.web4j.webmaster.TroubleTicket


    problem.append("Bad response detected." + NEW_LINE);
    problem.append(NEW_LINE);
    problem.append("URL : " + fTargetURL  + NEW_LINE);
    problem.append("Problem : " + aProblem);
    fLogger.severe(problem.toString());
    TroubleTicket ticket = new TroubleTicket(problem.toString());
    try {
      ticket.mailToWebmaster();
    }
    catch(AppException ex){
      fLogger.severe("Cannot send email regarding bad response.");
    }
  }
View Full Code Here


  
    <P>Also, stores the trouble ticket in application scope, for possible
    later examination.
  */
  protected final void logAndEmailSeriousProblem (Throwable ex, HttpServletRequest aRequest) throws AppException {
    TroubleTicket troubleTicket = new TroubleTicket(ex, aRequest);
    fLogger.severe("TOP LEVEL CATCHING Throwable");
    fLogger.severe( troubleTicket.toString() );
    log("SERIOUS PROBLEM OCCURRED.");
    log( troubleTicket.toString() );
    fConfig.getServletContext().setAttribute(MOST_RECENT_TROUBLE_TICKET, troubleTicket);
    troubleTicket.mailToWebmaster();
  }
View Full Code Here

    String message =
      "Response time of web application exceeds configured performance threshold." + NEW_LINE +
      "Time : " + aMilliseconds + " milliseconds."
    ;
    Throwable ex = new Throwable(message);
    TroubleTicket troubleTicket = new TroubleTicket(ex, aRequest);
    fLogger.severe("Poor response time : " + aMilliseconds + " milliseconds");
    fLogger.severe( troubleTicket.toString() );
    log("Poor response time : " + aMilliseconds + " milliseconds");
    log( troubleTicket.toString() );
    troubleTicket.mailToWebmaster();
  }
View Full Code Here

TOP

Related Classes of hirondelle.web4j.webmaster.TroubleTicket

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.