From d52bb477f5f2d3c8f3b5d64bd5e6529f0f0a1c43 Mon Sep 17 00:00:00 2001 From: Harsh Mathur Date: Fri, 3 Mar 2017 00:46:49 +0530 Subject: [PATCH] Added Readme --- README.MD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 README.MD diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..dced6fb --- /dev/null +++ b/README.MD @@ -0,0 +1,40 @@ +The Project is aimed at learning Java 8 Promises with Thread pools and event based programming model. + + +Steps: + +1. Install Java 8. +http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html + +2. Install maven. +https://maven.apache.org/download.cgi + +3. To Compile and Build +mvn clean install + + +4. To run + +java -jar target/ThreadPoolDownload-1.0-SNAPSHOT.jar + +Options: + +usage: utility-name + + -d,--save-dir Directory to Save files + + -f,--urls URLs in comma separated format + + -j,--no-of-threads Parallelism + + -k,--fresh Force The Manager to Download all + parts again, don't resume + + -x,--max-number-of-connections Maximum Number of Connections per + URL + + + +Example: + +java -jar target/ThreadPoolDownload-1.0-SNAPSHOT.jar -j 10 -x 8 -d /tmp -f https://1.as.dl.wireshark.org/osx/Wireshark%202.2.4%20Intel%2064.dmg,http://s3.amazonaws.com/epubbud_epubs/5FPD5ML6/1984.epub \ No newline at end of file