Exemplo n.º 1
0
 @Override
 @SuppressWarnings(Const.WARNING_UNCHECKED)
 public void doGet(final HttpServletRequest req, final HttpServletResponse resp)
     throws IOException {
   // PrintWriter out;
   // out = resp.getWriter();
   try {
     processGet();
   } catch (NimbitsException e) {
     LogHelper.logException(IdlePointCron.class, e);
   }
 }
Exemplo n.º 2
0
  protected static int processGet() throws NimbitsException {
    final List<Entity> points = EntityServiceFactory.getInstance().getIdleEntities();
    log.info("Processing " + points.size() + " potentially idle points");
    for (final Entity p : points) {
      try {
        checkIdle((Point) p);
      } catch (NimbitsException e) {

        LogHelper.logException(IdlePointCron.class, e);
      }
    }
    return points.size();
  }
Exemplo n.º 3
0
 /** User-level log method ( called from a servlet) */
 public void logServlet(String msg, Throwable t) {
   msg = ("path=\"" + path + "\" :" + msg);
   loghelperServlet.log(msg, t);
 }
Exemplo n.º 4
0
 /** Internal log method */
 public void log(String msg, Throwable t, int level) {
   loghelper.log(msg, t, level);
 }
Exemplo n.º 5
0
 /** Internal log method */
 public void log(String msg, Throwable t) {
   loghelper.log(msg, t);
 }
Exemplo n.º 6
0
 /** Internal log method */
 public final void log(String msg) {
   loghelper.log(msg);
 }