Find Jobs
Hire Freelancers

all ready finished kindle android app just need some code modification

$250-750 USD

취소됨
게시됨 11년 이상 전

$250-750 USD

제출할때 지불됩니다
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.
프로젝트 ID: 4004339

프로젝트 정보

원격근무 프로젝트
활동 중 11년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다

고객에 대한 정보

국기 (UNITED STATES)
india, United States
5.0
4
결제 수단 확인
10월 13, 2012부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.