没有合适的资源?快使用搜索试试~ 我知道了~
JXTA 2.5 - Programming Guide
5星 · 超过95%的资源 需积分: 9 6 下载量 49 浏览量
2011-04-17
00:23:52
上传
评论
收藏 3.14MB PDF 举报
温馨提示
Jxta,java的P2P开发教程,了解Jxta技术的核心部分
资源推荐
资源详情
资源评论
JXTA Java
™
Standard Edition v2.5:
Programmers Guide
September 10
th
, 2007
JXSE 2.5 Programmers Guide : 1
© 2002-2007 Sun Microsystems, Inc. All rights reserved.
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks, registered trademarks, or service marks of Sun Microsystems,
Inc. in the United States and other countries.
All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc., in the
United States and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun
Microsystems, Inc.
UNIX is a registered trademark in the United States and other countries, exclusively licensed through X/Open Company, Ltd.
Please Recycle
JXSE 2.5 Programmers Guide : 2
Table of Contents
Introduction................................................................................................7
Why JXTA™ ?...........................................................................................7
What is JXTA™ Technology?....................................................................8
What can be done with JXTA™ Technology? ..........................................8
Where to get JXTA™ technology.............................................................9
Getting Involved......................................................................................9
JXTA™ Architecture..................................................................................10
Overview...............................................................................................10
JXTA Components..................................................................................11
Key Aspects of the JXTA Architecture...................................................11
JXTA Concepts...........................................................................................12
Peers......................................................................................................12
Peer Groups...........................................................................................12
Network Services..................................................................................13
Peer Group Services..............................................................................13
Messages...............................................................................................15
Pipes......................................................................................................16
JxtaSocket and JxtaBiDiPipe.................................................................17
Advertisements......................................................................................19
Security.................................................................................................20
IDs.........................................................................................................21
Network Architecture...............................................................................22
Network Organization...........................................................................22
Shared Resource Distributed Index (SRDI)..........................................23
Queries..............................................................................................23
Firewalls and NAT.................................................................................26
JXTA Protocols...........................................................................................27
Peer Discovery Protocol........................................................................28
Peer Information Protocol.....................................................................28
Peer Resolver Protocol..........................................................................28
Pipe Binding Protocol............................................................................29
Endpoint Routing Protocol....................................................................29
Rendezvous Protocol.............................................................................30
The Basics.................................................................................................31
Getting Started......................................................................................31
Accessing On-line Documentation .......................................................31
Downloading Binaries...........................................................................31
Downloading Binaries...........................................................................31
Compiling JXTA Code............................................................................31
Running JXTA Applications...................................................................32
"Public JXTA Network" Configuration Setting......................................33
JXTA and HTTP Proxies ....................................................................33
JXSE 2.5 Programmers Guide : 3
Do I need a Proxy? ............................................................................33
Creating various ID types.....................................................................34
ID Tutorial source code.....................................................................35
Advertisements......................................................................................38
Advertisement Tutorial source..........................................................39
Messages and Message Elements.........................................................47
Design points for JXTA Messages......................................................47
Design points for Message Elements................................................48
Message and Message Element tutorial source................................49
Programming with JXTA...........................................................................56
HelloWorld Example..........................................................................56
Running the HelloWorld Example.....................................................56
Source Code: HelloWorld..................................................................57
Working with Local Configuration Example......................................58
Running the WorkingWithLocalConfiguration Example....................58
Pitfalls................................................................................................58
Source Code: WorkingWithLocalConfiguration................................59
Peer Discovery..........................................................................................62
Discovery Service..................................................................................62
DiscoveryClient.....................................................................................63
Source Code: DiscoveryClient...............................................................65
Source Code: DiscoveryServer..............................................................68
Membership Service.................................................................................71
Role of the Membership Service...........................................................71
Membership Service and Credentials...................................................71
Local Credentials and Remote Credentials...........................................71
Membership Services and Peer Groups................................................71
Membership Service and Other Services..............................................71
Membership Service Basic Operation ..................................................72
Remote Credentials & Access Control..................................................75
PSE Membership Service.........................................................................77
Introduction...........................................................................................77
The PSE Membership Service and Other Services...............................77
The PSE Membership Service and Keystores.......................................77
Accessing the PSE Membership Service...............................................77
PSE Membership Service Components.................................................77
PSE Membership First Steps................................................................77
The PSE Credential...............................................................................78
PSE Config............................................................................................78
Pipe Service..............................................................................................81
JXTA Pipe Service..................................................................................81
PipeServer.............................................................................................82
Source Code: PipeClient.......................................................................84
Source Code: PipeServer......................................................................86
Multicast Socket.......................................................................................90
Description............................................................................................90
JXSE 2.5 Programmers Guide : 4
Learning goals.......................................................................................90
Basic Operations...................................................................................90
Caveats..................................................................................................90
Source Code : JxtaMulticastSocketClient.............................................91
Source Code : JxtaMulticastSocketServer............................................93
Propagated Pipe Example.........................................................................95
PropagatedPipeClient...........................................................................95
Source Code: PropagatedPipeClient.....................................................97
Source Code : PropagatedPipeServer.................................................100
JxtaBiDiPipe Example.............................................................................105
JxtaBiDiPipe........................................................................................105
JxtaServerPipeExample.......................................................................106
Source Code: JxtaServerPipeExample................................................107
JxtaBidiPipeExample...........................................................................112
Source Code: JxtaBidiPipeExample.....................................................113
JxtaSocket Tutorial.................................................................................116
JxtaServerSocketExample...................................................................117
Source Code: SocketServer................................................................118
Pipe adertisement example.................................................................121
ClientSocket........................................................................................122
Source Code: SocketClient.................................................................123
JXTA Services..........................................................................................126
Creating a JXTA Service......................................................................127
Server..................................................................................................129
readMessages()...............................................................................130
Source Code: Service Server..............................................................131
Example Service Advertisement:....................................................135
Service Client......................................................................................136
Source Code: Service Client...............................................................138
Password Protected Peer Group.............................................................141
The constructor method PrivatePeerGroup()..................................142
createPeerGroup()...........................................................................142
createPasswdMembershipPeerGroupModuleImplAdv()..................143
createPeerGroupAdvertisement()....................................................144
discoverPeerGroup()........................................................................145
joinPeerGroup()...............................................................................145
completeAuth()................................................................................145
Source Code: PrivatePeerGroup.........................................................147
Glossary..................................................................................................155
Appendix I: References...........................................................................159
Appendix II: Troubleshooting.................................................................160
Errors compiling JXTA applications....................................................160
Errors running JXTA applications.......................................................160
Setting the classpath variable.........................................................160
Unable to discover JXTA peers........................................................160
Using the JXTA Shell...........................................................................160
JXSE 2.5 Programmers Guide : 5
剩余170页未读,继续阅读
资源评论
- xzh20992019-03-12英文的版本
XJTLUSocPan
- 粉丝: 0
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- VB无纸化在线考试系统(源代码+系统)(20241j).7z
- VB文档管理信息系统设计(源代码+系统+答辩PPT)(2024sd).7z
- vb物流管理系统设计(论文+源代码)(20245p).7z
- vb小区物业管理系统(源代码+论文)(2024k0).7z
- vb小区物业管理系统设计(论文+源代码)(20246b).7z
- vb校园网交换机节点管理系统(源代码+论文+开题报告)(2024z4).7z
- vb小型企业工资管理系统设计(论文+源代码)(20241c).7z
- VB校园一卡通管理系统(源代码+系统)(20247u).7z
- VB新生报到注册系统设计(论文+源代码)(2024b9).7z
- vb试题库自动组卷系统(源代码+论文)(2024nc).7z
- VB试题库系统设计(源代码+系统+答辩PPT)(20243a).7z
- VB售楼管理系统设计(论文+源代码+开题报告)(2024ge).7z
- VB试题库自动组卷系统设计(论文+源代码)(2024mh).7z
- vb数控加工技术教学素材资源库的构建(源代码+论文)(202422).7z
- vb题库管理系统设计(源代码+论文)(2024it).7z
- VB停车场管理系统设计(源代码+系统+开题报告)(2024xr).7z
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功