Convert a small existing Java Application to SCALA with ACTORS
$30-100 USD
クローズ
投稿日: 12年以上前
$30-100 USD
完了時にお支払い
A small existing Java application that reads .zip files with csv-files in it, converts them and stores them into a database should be converted to scala with actors to test the multicore performance with scala. H2 is used as a database, so no complicated install is required. The application is already structured in the way of how the scala actors should look like: - ListZipFiles -> Pass on ZipFile - ListZipEntries -> Pass on ZipEntry (=File with CSV Data) - ReadLines -> Pass on single lines - ParseLine -> Convert Line to a JavaBean and pass on the bean to updateDb - UpdateDB -> Use JavaBean and store it into a database. Full Source Code, Data and the working sample application in Java will be provided. Building and runnding the code is based on Maven. Core Java Application: approx 300 Lines of Code + CSVParser (supplied) + Bean (supplied) Result / Goal: TWO Scala Applitions: 1) A Scala application with 5 actors working in a single pipeline. (a1->a2->a3->a4->a5) 2) A Scala application with three parallel pipelines where the listZipFiles actor submits data to three different pipelines (Loadbalanced, if possible). (a1-> (P1, P2, P3) where Px=a2->a3->a4->a5). Each application should display the total runtime of the application. The Scala Actors should be "Event-based" actors, using the "react" keyword. The supplied .zip File has a size of 31.5MB, containing 25.2 MB of zip files with sample data, h2 database, coding, maven build files etc. = full project directory. A readme file for starting h2 and building the java application is included.