A job scheduler configurable through RESTful web services.
multi-rpc 2.0.0
git clone https://github.com/giosil/multi-rpc.git
mvn clean install
- this will publishmulti-rpc-2.0.0.jar
in Maven local repository
git clone https://github.com/giosil/LJSA.git
mvn 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.git
mvn clean install
- this will producewrapp.war
intarget
directory
- Create if not exists
$HOME/cfg
directory - Copy json files from
cfg
to$HOME/cfg
- Deploy
wrapp.war
in your application server git clone https://github.com/giosil/LJSA.git
cd gui-web
mvn clean install
- this will producewljsa.war
intarget
directory- Launch
http://localhost:8080/wrapp