package it.acxent.cc; import it.acxent.common.CrontabInterface; import it.acxent.db.ApplParmFull; import it.acxent.db.DBAdapter; import it.acxent.db.ResParm; import it.acxent.util.Timer; public class CCCronWwwAutomator implements CrontabInterface { public ResParm crontabJob(ApplParmFull ap) { ResParm rp = new ResParm(true); Timer timer = new Timer(); timer.start(); System.out.println("CCCronWwwAutomator start..."); StringBuffer msg = new StringBuffer("\n################# Inizio crontab WWW AUTOMATOR CC (" + DBAdapter.getNow().toString() + ")\n#################"); WwwAutomator bean = new WwwAutomator(ap); WwwAutomatorCR CR = new WwwAutomatorCR(); CR.setFlgAbilita(1L); rp = bean.startAutomator(ap, CR, true); msg.append(rp.getMsg()); msg.append("\n################# Fine crontab WWW AUTOMATOR CC (" + DBAdapter.getNow().toString() + ")\n#################"); timer.stop(); msg.append("Durata aggiornamento: " + timer.getDurataHourMin() + "\n"); rp.setMsg(msg.toString()); System.out.println(msg.toString()); return rp; } }