Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

which of the following situations involving an

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago