GithubHelp home page GithubHelp logo

marcoantoniocorallo / jobscheduler-framework Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 174 KB

Framework for job scheduling and processing - Advanced Programming assignment

Home Page: https://pages.di.unipi.it/corradini/Didattica/AP-22/

License: GNU General Public License v3.0

Java 96.08% Makefile 3.92%
advanced-programming design-patterns framework inversion-of-control ioc java stream template-method-pattern

jobscheduler-framework's Introduction

JobScheduler-Framework

Advanced Programming assignment that requires to implement a simple software framework providing the functionalities of a job scheduler, but ignoring the aspects of parallelism and distribution.

More precisely, the framework includes an emitter of jobs, a compute phase executing the jobs, a collect stage grouping them, and an output action printing the results in a suitable format. As a proof of concept, a simple working instance of the framework has been implemented as well.

The framework is generic, uses jstreams and implements the concept of Inversion of Control through the Template Method design pattern. The framework code is into the class JobScheduler, that provides the template method (main), two frozen spots (collect, compute) and two hot spots to redefine in concrete classes (emit, output). The jobs to compute must be instances of the abstract class AJob.java, containing the abstract method execute().

As proof of concept, a concrete class that use this framework has been provided in the file AnagramsCounterScheduler, that implements the hot spots. This implementation schedules and computes AnagramsCounter jobs.

To use the framework, just pass the concrete class name as argument.

jobscheduler-framework's People

Contributors

marcoantoniocorallo avatar

Watchers

 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.