英语论文网

留学生硕士论文 英国论文 日语论文 澳洲论文 Turnitin剽窃检测 英语论文发表 留学中国 欧美文学特区 论文寄售中心 论文翻译中心 我要定制

Bussiness ManagementMBAstrategyHuman ResourceMarketingHospitalityE-commerceInternational Tradingproject managementmedia managementLogisticsFinanceAccountingadvertisingLawBusiness LawEducationEconomicsBusiness Reportbusiness planresearch proposal

英语论文题目英语教学英语论文商务英语英语论文格式商务英语翻译广告英语商务英语商务英语教学英语翻译论文英美文学英语语言学文化交流中西方文化差异英语论文范文英语论文开题报告初中英语教学英语论文文献综述英语论文参考文献

ResumeRecommendation LetterMotivation LetterPSapplication letterMBA essayBusiness Letteradmission letter Offer letter

澳大利亚论文英国论文加拿大论文芬兰论文瑞典论文澳洲论文新西兰论文法国论文香港论文挪威论文美国论文泰国论文马来西亚论文台湾论文新加坡论文荷兰论文南非论文西班牙论文爱尔兰论文

小学英语教学初中英语教学英语语法高中英语教学大学英语教学听力口语英语阅读英语词汇学英语素质教育英语教育毕业英语教学法

英语论文开题报告英语毕业论文写作指导英语论文写作笔记handbook英语论文提纲英语论文参考文献英语论文文献综述Research Proposal代写留学论文代写留学作业代写Essay论文英语摘要英语论文任务书英语论文格式专业名词turnitin抄袭检查

temcet听力雅思考试托福考试GMATGRE职称英语理工卫生职称英语综合职称英语职称英语

经贸英语论文题目旅游英语论文题目大学英语论文题目中学英语论文题目小学英语论文题目英语文学论文题目英语教学论文题目英语语言学论文题目委婉语论文题目商务英语论文题目最新英语论文题目英语翻译论文题目英语跨文化论文题目

日本文学日本语言学商务日语日本历史日本经济怎样写日语论文日语论文写作格式日语教学日本社会文化日语开题报告日语论文选题

职称英语理工完形填空历年试题模拟试题补全短文概括大意词汇指导阅读理解例题习题卫生职称英语词汇指导完形填空概括大意历年试题阅读理解补全短文模拟试题例题习题综合职称英语完形填空历年试题模拟试题例题习题词汇指导阅读理解补全短文概括大意

商务英语翻译论文广告英语商务英语商务英语教学

无忧论文网

联系方式

远程接口调用 [2]

论文作者:www.51lunwen.org论文属性:作业 Assignment登出时间:2015-12-14编辑:zhaotianyun点击率:5955

论文字数:1032论文编号:org201512111649523993语种:英语 English地区:中国价格:免费论文

关键词:RMI分布式系统技术远程接口

摘要:本文主要讲述了远程接口调用(RMI)是一个分布式系统技术,它允许JVM去调用对象的方法,将在网络中另一个JVM上运行。

terface for the remote object that must inherit from Remote
Implement an implementation for the remote object, the class must inherit from UnicastRemoteObject
Use the RMIC program to create a stub that used by the server and also by the client
Write a server program to create an instance of the registered remote object and register it with the RMI registry.
Write a client to use this remote object by obtaining a reference to the remote object from the RMI registry and invoking the remote object's methods by sending messages to it.


结果和讨论——RESULTS AND DISCUSSION

ADVANTAGES OF RMI
Object Oriented
Mobile Behavior
Safe and Secure
Easy to Write/Easy to Use
Write Once, Run Anywhere

RMI问题概述——RMI PROBLEM OVERVIEW

According to [1], RMI poses the following problems when run in a cluster

environment:

?RMI is too slow for environments with low latency and high bandwidth. ? RMI's overhead for dealing with network problems is too verbose for a cluster environment. ? The program size increases significantly reducing productivity and maintainability. ? Writing advanced code to implement RMI can become tedious, time consuming and hard to manage.


实现我的彩票应用程序——IMPLEMENTING MY LOTTER APPLICATION

In order to implement my RMI application I had to implement four source files for the Lottery, Server and the client

· Separate file for writing the interface (in my lottery application RandomNumberGenerator.java

· Separate file for writing the interface (in my lottery application RandomNumberGenerator.java

· Separate file in which i have writen the code for the implementation of the interface RandomNumberGeneratorImpl.java


运行我的彩票应用程序——RUNNING MY LOTTERY APPLICATION

打开一个命令行控制台如像ms - dos——Open a command line console e.g. like MS-Dos

1. To compile the interface and its implementation, make sure you in the same directory type 'rmic RandomNumberGeneratorImpl'. 2. Type 'javac LotteryServer.java' and 'javac LotteryClient.java' to compile the client and server programs. 3. Type 'rmiregistry' to start the RMI registry so that objects can be registered, the MS-Dos window will hang in there.

Open another MS-Dos window, make sure you in the same directory, type 'java LotteryServer' to run the server program again the MS-Dos window will hang in there.

4. Open another MS-Dos window, make sure you in the same directory, type 'java LotteryClient' n note n should be an integer and indicates the amount of money you willing to spend on the lottery e.g. 'java LotteryClient 1' to run the client program and the random lottery numbers will be displayed.

Running LotteryClient where the client is choosing to spend only one sterling pound on the lottery.


总结——CONCLUSIONS

I have successfully managed to complete my lottery application. I had two different options which i could use to implement my lottery application. One was to create an array with 49 integer between 1 and 49 and index each element of the array to make sure once a random number is g论文英语论文网提供整理,提供论文代写英语论文代写代写论文代写英语论文代写留学生论文代写英文论文留学生论文代写相关核心关键词搜索。

相关文章

英国英国 澳大利亚澳大利亚 美国美国 加拿大加拿大 新西兰新西兰 新加坡新加坡 香港香港 日本日本 韩国韩国 法国法国 德国德国 爱尔兰爱尔兰 瑞士瑞士 荷兰荷兰 俄罗斯俄罗斯 西班牙西班牙 马来西亚马来西亚 南非南非