Question: Write a program to accept 5 URL strings as input, using HttpClient to read the URLs, parse the responses into blank-separated words, create an in-memory

 Write a program to accept 5 URL strings as input, using

Write a program to accept 5 URL strings as input, using HttpClient to read the URLs, parse the responses into blank-separated words, create an in-memory structure to store each word and the number of times each word appears in aggregate of all 5 pages and provide an output of the top 10 most prevalent words and their counts. Gather statistics for processing each URL and overall statistics for the end to end run. Save your results to a file. Create this project with Maven. Use Apache HttpClient 4.x. Modify the above program to spawn 5 threads to process the URLs in parallel. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run. Modify the above program to use a single thread and make 5 asynchronous calls instead of the 5 threads. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run. Write a program to accept 5 URL strings as input, using HttpClient to read the URLs, parse the responses into blank-separated words, create an in-memory structure to store each word and the number of times each word appears in aggregate of all 5 pages and provide an output of the top 10 most prevalent words and their counts. Gather statistics for processing each URL and overall statistics for the end to end run. Save your results to a file. Create this project with Maven. Use Apache HttpClient 4.x. Modify the above program to spawn 5 threads to process the URLs in parallel. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run. Modify the above program to use a single thread and make 5 asynchronous calls instead of the 5 threads. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!