Find Jobs
Hire Freelancers

all ready finished kindle android app just need some code modification

$250-750 USD

Cancelled
Posted over 11 years ago

$250-750 USD

Paid on delivery
Need to create a Matcher Thread Your Matcher thread should have a constructor that takes in 4 parameters public Matcher(DataFeeder f, long sleep, String matchingType, Channel channel){}: 'f', An implementation of DataFeeder interface. 'sleep', the sleep interval for the thread in milli seconds. 'matchingType', The type of matching to be performed. 'channel', The channel you have defined and initialized in the server. By using this, you can send messages to the responder and requester after each assignment. Every time the matcher thread wakes up, it calls methods in DataFeeder interface to assign requests to a response. If it cannot find a match, it will just go back to sleep. The thread keeps on matching as many requests and responses as possible. Once it has matched all possibilities, it goes back to sleep. You have to implement two kinds of matchers, FCFS in which the first request is matched with the first response and MostRecent in which the last request is matched with the last response first. mplementation Server You should modify your Server class from Project 6. The server should start a Matcher thread(see below) when it starts. Also you should modify your server logic in such a way that when messages are received, it is added to the request or response list and no assignment or matching happens. Your server should also take in two extra parameters from the command line - matching type and sleep time. This means now your server takes in 3 command line parameters java Server port matchtype sleep. eg: java Server 1234 FCFS 1000 means start the server at port 1234, with matching type FCFS and a sleep time of 1000 milli seconds. DataFeeder Interface Create a new interface DataFeeder with the code given below in the appropriate folder. Note the package structure and make sure your folder structure matches it.
Project ID: 4004339

About the project

Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
india, United States
5.0
4
Payment method verified
Member since Oct 13, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.