Ejemplo n.º 1
0
 /**
  * Schedules a service-request on a file. Only "pages/main" services are handled. The
  * service-request is later handled through the {@link #probeCall} method.
  *
  * @param service the service to be performed
  * @param subservice the subservice to be performed
  * @param filename the filename to service
  * @return <code>true</code> if maintenance was performed, <code>false</code> otherwise
  */
 public boolean fileChange(String service, String subservice, String filename) {
   log.debug("frontend change -> " + filename);
   log.service("s=" + service + " sub=" + subservice + "file=" + filename);
   // jump to correct subhandles based on the subservice
   if (subservice.equals("main")) {
     handleMainCheck(service, subservice, filename);
   }
   return true;
 }
Ejemplo n.º 2
0
 protected void executeUpdate(Statement stmt, String u) throws SQLException {
   u = u.replace("$PREFIX", getPrefix());
   LOG.info(" Executing update " + u);
   int result = stmt.executeUpdate(u);
   LOG.service("Result :" + result);
 }