Закрыт

Write some Software

1. Write a Java program to simulate a distributed printer queue using ZooKeeper. You will be writing two programs the PrinterMaster and PrinterClient. Use Znodes to represent printer queue. Specifications for these components are given below.

Your program should handle all invalid arguments a

PrinterMaster Specifications:

• Whenever the Master is invoked it should connect to one of the ZooKeeper quora as a client. • Master should create Znode to represent the printer queue.

• This program should run indefinitely until you type exit on the console.

• Your master should process the print job with least job id. We do not actually use a physical printer here, so just print on the console that a print job with a given id has been processed. Display the contents (data) of the Znode representing the job on the console as well.

• After your master processes the job it should remove the Znode representing the print job.

• After processing every print job your master should wait for a time period called “cool-off period”. This should be passed as an argument when you start your master.

PrinterClient Specifications:

• Whenever the client is invoked it should connect to one of the ZooKeeper quora as a client.

• This program should be invoked by passing a string as argument. We will call this argument as “data”.

• If the client has been started before the master it should throw an error with appropriate error message and exit.

• If the master hasn’t created the Znode representing the printer queue, the client should throw an appropriate error message and exit.

• If both the conditions mentioned above are not true then your client has to create a Znode under the queue. You should pass the name of the Znode representing the queue as an argument to the client.

• This Znode should be ordered automatically and be deleted when the client terminates its connection. Use an appropriate Znode type to model this behavior.

• Data for the Znode created should be the “data” argument passed when the client was invoked.

• After creating the Znode and assigning content to it, the client has to create a watch for the event “NodeDeleted” on the Znode created by this client.

• Once the watch is triggered, the client should display a message “Your print job is processed. Check the printer” and terminate.

• If the Znode created still exist even after a period of time called “timeout period” the client should print an error message, “Master must be swamped/it should have failed. Please report this to the admin” and terminate.

• Timeout period should also be passed as an argument to the client. Assign it to 10*cool-off period of the master.

Квалификация: Java

Показать больше software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, software write protection, free software write book, software write book, software write protect software, software write technical manual

О работодателе:
( 0 отзыв(-а, -ов) ) India

ID проекта: #13613837

11 фрилансеров(-а) в среднем готовы выполнить эту работу за ₹10275

it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

₹1750 INR за 3 дней(-я)
(949 отзывов(-а))
7.4
₹7777 INR за 3 дней(-я)
(20 отзывов(-а))
5.4
anuragiitk

I am an IITK graduate and I have 9 years of experience in software development. I have 100% completion rate and I have finished all the projects with the highest level of customer satisfaction. I usually finish project Больше

₹11111 INR за 3 дней(-я)
(16 отзывов(-а))
5.1
cardelgo

Hello. Your quality parameters will be applied to the project. They must be discussed and agreed in advance. I am an Agile practitioner, and I have coordinated deployments both on premise and on cloud environment Больше

₹10000 INR за 3 дней(-я)
(3 отзывов(-а))
2.6
freelancerkpis

We are happy to bid on this project. ***** We provides dedicate developers and Development and design services as well. ***** We are having a great team of Mobile developers with 7-8 years of experience in th Больше

₹13888 INR за 3 дней(-я)
(1 отзыв)
2.8
₹11111 INR за 10 дней(-я)
(4 отзывов(-а))
1.7
₹7666 INR за 4 дней(-я)
(3 отзывов(-а))
1.3
abhinavjohri

Product Developer (Core JAVA, Hibernate, WebServices ( RESTFul ), AGILE) • 6 years 2 months experience in Product Development & test-suite automation. • Experience in WebService development Core JAVA, Hibern Больше

₹22222 INR за 15 дней(-я)
(1 отзыв)
0.4
gfs

************** Hello there,************ This is annie here. Hope you are doing fantastic. I have gone through your project requirement and i am very much confident that i can do this work done for you. I represe Больше

₹10000 INR за 10 дней(-я)
(0 отзывов(-а))
0.0
₹9722 INR за 6 дней(-я)
(0 отзывов(-а))
0.0
megasoft3

Dear Client, Thanks for providing us opportunity to place bid over the project and communicate with [login to view URL] mainly deal in web development, SEO, Android App, software testing and graphic design. Our vision is to b Больше

₹9722 INR за 6 дней(-я)
(0 отзывов(-а))
0.0
sabarie78

Hi Mr/Miss, I am an experienced java professional. I worked as a project support specialist for more than 50 java projects. I have in depth knowledge in java. I can work on this project. Please look at my linked Больше

₹7777 INR за 20 дней(-я)
(0 отзывов(-а))
0.0