Regalamiunsorriso/decompiled-libs/www/acxent-common-1.0.1/it/acxent/cc/CCCronWwwAutomator.java

29 lines
1.1 KiB
Java
Raw Normal View History

2026-04-22 18:41:37 +02:00
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;
}
}