Friday, August 27, 2010

JXTA Java P2P Programming














JXTA: Java™ P2P Programming
By Daniel Brookshier, Darren Govoni, Navaneeth Krishnan, Juan Carlos Soto
Publisher: Sams Publishing
Pub Date: March 22, 2002
ISBN: 0-672-32366-4
Pages: 432
JXTA: Java P2P Programming provides an invaluable introduction to this new
technology, filled with useful information and practical examples. It was created by
members of the JXTA community, sharing their real-world experience to introduce
developers to JXTA. It starts with the fundamentals of P2P and demonstrates how JXTA
fulfills the P2P promise, then covers the essentials of JXTA including the protocols, the
JXTA Shell, and groups. Later chapters include case studies demonstrating JXTA to
synchronize data and to create distributed applications. Includes a foreward by Juan
Carlos Soto, Group Marketing Manager for Project JXTA at Sun Microsystems and the
jxta.org Open Source Community Manager.

Table of Content
Table of Content.......................................................................................................... i
Copyright .................................................................................................................... v
Trademarks............................................................................................................ v
Warning and Disclaimer......................................................................................... v
Credits .................................................................................................................... v
Dedication ............................................................................................................. vi
Foreword................................................................................................................... vi
About the Authors ................................................................................................... viii
Acknowledgments................................................................................................... viii
Tell Us What You Think! ........................................................................................... ix
Introduction ............................................................................................................... ix
JXTA Scale .......................................................................................................... xii
Is JXTA a New Concept?..................................................................................... xii
JXTA Risks.......................................................................................................... xiii
What This Book Covers...................................................................................... xiii
Who Should Use This Book?.............................................................................. xiii
How This Book is Organized .............................................................................. xiv
Web Resources and Example Code .................................................................. xiv
Chapter 1. What is P2P? ........................................................................................... 1
Defining Peer-To-Peer........................................................................................... 1
Defining P2P .......................................................................................................... 1
P2P Concepts........................................................................................................ 4
Applications for P2P............................................................................................... 8
Key P2P Issues.................................................................................................... 11
Technologies Related to P2P .............................................................................. 16
Summary.............................................................................................................. 22
Chapter 2. Overview of JXTA.................................................................................. 24
JXTA Defined....................................................................................................... 24
JXTA Concepts .................................................................................................... 26
JXTA Protocols .................................................................................................... 37
Peers and Groups................................................................................................ 39
Advertisements .................................................................................................... 45
Pipe Binding Protocol........................................................................................... 54
Resolver ............................................................................................................... 55
Rendezvous Protocol........................................................................................... 56
JXTA Identifiers.................................................................................................... 58
Summary.............................................................................................................. 59
Chapter 3. JXTA Protocols ...................................................................................... 60
Protocol and API.................................................................................................. 60
JXTA Goals .......................................................................................................... 61
JXTA Peer and Java............................................................................................ 62
Overview of the JXTA Protocols JAVA API......................................................... 63
Summary of Java API for JXTA Protocols........................................................... 65
Where JXTA Applications Begin.......................................................................... 66
The Peer............................................................................................................... 67
Starting JXTA....................................................................................................... 68
Peer Discovery Protocol API ............................................................................... 69
Peer Resolver Protocol API................................................................................. 79
Peer Information Protocol .................................................................................... 85
Peer Membership Protocol .................................................................................. 87
Pipe Binding Protocol API.................................................................................... 92
Peer Endpoint Protocol .......................................................................................100
Summary.............................................................................................................106
Chapter 4. JXTA Shell ............................................................................................107
Why Shell?..........................................................................................................107
Installation and Troubleshooting.........................................................................107
Shell Commands.................................................................................................113
Using the Shell....................................................................................................116
Adding Shell Commands ....................................................................................119
Summary.............................................................................................................121
Chapter 5. JXTA ping Command..........................................................................122
ping....................................................................................................................122
Command Overview ...........................................................................................123
Project Overview .................................................................................................123
Requirements......................................................................................................123
Design Approach ................................................................................................124
Implementation....................................................................................................125
Install ...................................................................................................................147
Test .....................................................................................................................147
Further Improvements to Ping ............................................................................149
Summary.............................................................................................................149
Chapter 6. Working with Groups ............................................................................150
Impotance of Peer Groups ................................................................................150
Impotance of Peer Group Management............................................................151
Types of Peer Group Management ....................................................................151
Peer Membership Management .........................................................................152
Summary.............................................................................................................170
Chapter 7. JXTA Content Manager Service (CMS) ...............................................172
An Overview........................................................................................................172
How CMS Works.................................................................................................174
A Simple CMS Example .....................................................................................175
Overall Design.....................................................................................................176
Initializing the Content Manager .........................................................................177
Searching for Content .........................................................................................180
Summary.............................................................................................................186
Chapter 8. JXTA and Security ................................................................................187
Impotance of Security ........................................................................................187
Security is Multifaceted .......................................................................................187
Security Attacks in P2P Networks ......................................................................188
JXTA Platform Security.......................................................................................189
JXTA Security Requirements..............................................................................189
The Cryptographic Toolkit...................................................................................189
Security Issues and Solutions.............................................................................192
Trust in P2P systems..........................................................................................207
P2P Security Models...........................................................................................208
Summary.............................................................................................................212
Chapter 9. Synchronizing Data Between Peers.....................................................213
Designing a PDA Organizer for JXTA ................................................................213
Design Considerations........................................................................................215
Group Security and Associations .......................................................................216
Class Design.......................................................................................................218
Summary.............................................................................................................235
Chapter 10. JXTA Chess: Game Programming.....................................................237
Running JXTA Chess..........................................................................................238
Overview of the Classes .....................................................................................248
Summary.............................................................................................................265
Chapter 11. JXTA Explorer .....................................................................................267
Designing an Advertisement Explorer ................................................................267
Design Overview.................................................................................................268
The Explorer Class .........................................................................................268
PeerDiscoveryThread Class.........................................................................273
AdvertisementTreeCellRenderer Class...................................................278
Running Explorer ................................................................................................279
Summary.............................................................................................................281
Appendix A. The Project JXTA Community............................................................282
Contributing to a Project .....................................................................................282
Submitting a New Project ...................................................................................282
JXTA.ORG Development Environment..............................................................283
jxta.org Projects ..................................................................................................283
Details on Select Projects...................................................................................285
Commercial Projects ...........................................................................................286
Appendix B. XML Primer ........................................................................................289
XML Basics.........................................................................................................289
Self-Describing....................................................................................................290
Strong Typing and Syntax Validation .................................................................290
Problems with XML .............................................................................................291

Download
Another Internet books
Another java books

No comments:

Post a Comment

Related Posts with Thumbnails

Put Your Ads Here!