80 likes | 236 Views
Introduction - What is Jini Technology?. Set of Java APIs & distributed network protocols built on top of RMI – object hierarchies…. Distributed Programming Model built on top of RMI and organised as federation of services (JVMs) Services – hardware devices, software, etc.
E N D
Introduction - What is Jini Technology? • Set of Java APIs & distributed network protocols built on top of RMI – object hierarchies…. • Distributed Programming Model built on top of RMI and organised as federation of services (JVMs) • Services – hardware devices, software, etc. • New network capabilies – SN, AC, SOD
Jini Example Digital camera service Image/Persistent storage service Djinn Printer service Client
How Jini Works • Runtime Infrastructure – lookup services, jini-service providers & jini clients -provides mechanisms for adding, using and removing services via Discovery, Join & Lookup • Programming Model - Helps build a distributed system as a federation of services and consists of 3 parts: • Leasing • Transactions • Distributed Event Model
Discovery Protocol • Jini enabled device drops presence announcement • monitor port for presence announcement packets • Send ServiceRegistrar object to client/service • Client/service can then invoke methods on this object
The Join Process • A “service” connects to a Lookup Service via the ServiceRegistrar object received during Discovery • A “service” sends information “ServiceItem” about itself through the ServiceRegistrar to the Lookup service • The Lookup Service stores this information and associates the service with the group • At this point, the service has joined the group on that Lookup Service
The Lookup Process Lookup Server 2. Perform Discovery & get back ServiceRegistrar object • Register printer service with • Lookup Service 3. Send ServiceTemplate using registra.lookup(template) 4. Lookup service performs query & sends back matching service objects as return values of lookup() Printer Service 5. Client invokes methods on the service proxy object to interact directly with the printer 6. Printer prints document & notifies client via a remote event Client
Remote PDA (Palm V) Printing Lookup Service with List of Service Items • Register HelloWordService • with Lookup Service • Register Bank service with • Lookup Service HelloWorldService Bank Service 2. Find Lookup Services • Register Printer Service • with Lookup Service 3. Download Printer Service proxy 4. Send document to printer using methods on the service object Print Proxy 5. Print document Printer service Client
Conclusion • Set of protocols for building self-healing, robust distributed networks organised as federations of services • Adds new capabilities to networking, e.g. spontaneous networking, services-on-demand & automatic configuration. • Achieves this via its 5 main concepts of Discovery & Join, Lookup, Leasing, Remote Event Model and Transactions