Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it...
-
Upload
edwin-horn -
Category
Documents
-
view
224 -
download
1
Transcript of Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it...
![Page 1: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/1.jpg)
Jini Architecture
Alessandro Brawerman
![Page 2: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/2.jpg)
Contents
Jini definitionAdvantagesArchitectureHow it worksWebsites to check
![Page 3: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/3.jpg)
Distributed system - federating groups of users and the resources required by those users.Enables users to share services and resources over a network.Services can join or leave in a robust way, and clients can rely upon the availability of visible services until clear failure detections.
What is Jini?
![Page 4: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/4.jpg)
Moving to client-client model.Network plug-and-work, dynamic configuration.Easy access to resources anywhere on the network.
Jini - Advantages
![Page 5: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/5.jpg)
Erase the hard/software distinction.
Simplifies maintaining and altering a network.
Jini – Advantages (cont’d)
![Page 6: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/6.jpg)
Based on JavaDynamically download and run codeBuilt-in securityRMIDepends on the Java environment rather programming.
Jini – Java technology-centered
![Page 7: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/7.jpg)
ServiceProxyLookup Service Client
Jini – Architecture
![Page 8: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/8.jpg)
Entity to be used by a person, program or another service.No hardware/software distinction.Dynamic nature – they can be added or withdrawal from a federation at any time.Examples: printers, disks, applications, databases, etc.
Services
![Page 9: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/9.jpg)
Each lookup service provides a list of available services, communication procedure and attributes.
Lookup Service
Lookup Service A Lookup Service BClient A Client B Client C
Printer
Database
Calendar
Printer
Database
Printer Database Disk StorageDisk Storage
![Page 10: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/10.jpg)
Discovery/Join Protocol
Lookup Services
Service sends a looking for lookup services
Lookup Services
Lookup Services respond
Join
Printer
Printer
Printer
![Page 11: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/11.jpg)
It’s an object that teaches the client how to communicate with the service.The proxy is downloaded to the lookup services and then to clients.It can be the service itself.It can be an RMI stub.It can act as a smart adapter.
Proxy
![Page 12: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/12.jpg)
Proxy – Currency Converter
CurrencyConv
Lookup ServiceClient
Proxy – Case 1
CurrencyConv
Client
CurrencyConv
![Page 13: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/13.jpg)
Proxy – Currency Converter
Proxy – Case 2
Client
CurrencyConv
Service
CurrencyConv
RMI
500 dollars
365 UK Pounds
![Page 14: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/14.jpg)
Proxy – Currency Converter
Proxy – Case 3
Client
CurrencyConv
Service
CurrencyConv
Dollar to UK pounds
0.75
RMI, CORBA, Socket, SOAP
![Page 15: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/15.jpg)
Any entity that needs to use a service.Goes through a matching protocol:
Client
Lookup Services
Client sends a looking for lookup services
Lookup Services
Lookup Services respond
Lookup Services
Client searches fortype of services.
Printer
Printer
Lookup Services
Lookup Services return the proxies.
Printer
Printer
![Page 16: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/16.jpg)
The Whole Process
Lookup Service
registration
Proxy
Printer Interface
Registering the service:
![Page 17: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/17.jpg)
The Whole Process (Cont’d)
Lookup ServicePrinter Interface
Client
Looking up for printer interface
Proxy
Looking up for services :
![Page 18: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/18.jpg)
The Whole Process (Cont’d)
Client
Using the service:
![Page 19: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/19.jpg)
Services are registered for a bounded time. Special messages or Heartbeats.Proxies are leased for a bounded time.Clients can renew their proxies, if service permits.The leasing process takes care of fault detection.
Leasing
![Page 20: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/20.jpg)
Leasing (cont’d)
Lookup ServicePrinter Interface
X
Lookup Service
![Page 21: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/21.jpg)
Leasing (cont’d)
Lookup ServicePrinter Interface
Client
Printer interface
Leasing Renewal
Yes, Leasing Time
![Page 22: Jini Architecture Alessandro Brawerman. Contents Jini definition Advantages Architecture How it works Websites to check.](https://reader034.fdocuments.net/reader034/viewer/2022051516/56649f345503460f94c51e98/html5/thumbnails/22.jpg)
www.jini.orgwww.sun.com/software/jini/www.kedwards.com/jini/
References