A job scheduler configurable through RESTful web services.
multi-rpc 2.0.0
git clone https://github.com/giosil/multi-rpc.gitmvn clean install- this will publishmulti-rpc-2.0.0.jarin Maven local repository
git clone https://github.com/giosil/LJSA.gitmvn clean install
import java.io.PrintStream;
import org.dew.ljsa.ALJSAJob;
import org.dew.ljsa.LJSAMap;
import org.dew.ljsa.OutputSchedulazione;
import org.dew.ljsa.Schedulazione;
public
class ExampleLJSAJob extends ALJSAJob
{
protected PrintStream psLog;
@Override
public
void init(Schedulazione sched, OutputSchedulazione out)
throws Exception
{
LJSAMap configurazione = sched.getConfigurazione();
LJSAMap parametri = sched.getParametri();
psLog = new PrintStream(out.createReportFile("report.txt"), true);
}
@Override
public
void execute(Schedulazione sched, OutputSchedulazione out)
throws Exception
{
psLog.println("Hello World.");
out.setReport("Job completed.");
}
@Override
public
void destroy(Schedulazione sched, OutputSchedulazione out)
throws Exception
{
}
@Override
public
void exceptionOccurred(Throwable throwable)
throws Exception
{
throwable.printStackTrace(psLog);
psLog.println("Job aborted.");
}
}wrapp
git clone https://github.com/giosil/wrapp.gitmvn clean install- this will producewrapp.warintargetdirectory
- Create if not exists
$HOME/cfgdirectory - Copy json files from
cfgto$HOME/cfg - Deploy
wrapp.warin your application server git clone https://github.com/giosil/LJSA.gitcd gui-webmvn clean install- this will producewljsa.warintargetdirectory- Launch
http://localhost:8080/wrapp










