Git Product home page Git Product logo

ljsa's Introduction

LJSA - Light Java Scheduler Application

A job scheduler configurable through RESTful web services.

Dependencies

multi-rpc 2.0.0

  • git clone https://github.com/giosil/multi-rpc.git
  • mvn clean install - this will publish multi-rpc-2.0.0.jar in Maven local repository

Build

  • git clone https://github.com/giosil/LJSA.git
  • mvn clean install

Implement a Job

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.");
  }
}

Database

Schema

Run LJSA GUI (org.dew.swingup.main.Main) from LJSA-gui (see gui folder) sub-project

Define class

Classes

Define activity

Activities

Schedule activity

Schedule

View Job logs

Job Logs

Check Scheduler

Scheduler

Logs

Logs

File Manager

File Manager

Launch LJSA GUI WebApp from LJSA-gui-web sub-project

Dependencies

wrapp

  • git clone https://github.com/giosil/wrapp.git
  • mvn clean install - this will produce wrapp.war in target directory

Build and deploy web application with Wrapp

  • 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 produce wljsa.war in target directory
  • Launch http://localhost:8080/wrapp

Define class

Classes

Define activity

Activities

Schedule activity

Schedule

Contributors

ljsa's People

Contributors

giosil avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.