1 / 78

JINI: A Technology for 21st Century Is It Ready for Prime Time?

JINI: A Technology for 21st Century Is It Ready for Prime Time?. Prof. Steven A. Demurjian and Dr. Paul Barr Parag Bhogte and Haiying Ren Computer Science & Engineering Department 191 Auditorium Road, Box U-155 The University of Connecticut Storrs, Connecticut 06269-3155.

Télécharger la présentation

JINI: A Technology for 21st Century Is It Ready for Prime Time?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JINI: A Technology for 21st CenturyIs It Ready for Prime Time? Prof. Steven A. Demurjian and Dr. Paul Barr Parag Bhogte and Haiying Ren Computer Science & Engineering Department 191 Auditorium Road, Box U-155 The University of Connecticut Storrs, Connecticut 06269-3155 {steve, parag, hyren}@engr.uconn.edu http://www.engr.uconn.edu/~steve (860) 486 - 4818

  2. What is a Distributed Application? • Distributed Computing/Applications are … • Systems of Systems • Interoperation of New & Existing Applications • Legacy, Databases, COTS, New Clients, etc. • Network Centric Environment • Distributed Computing Applications must … • Manage, Control, Access, and Modify Data • Allow Humans to Interact with Data • Provide High-Availability and Performance • Evolvable Over Time • Present & Future Army Systems Exhibit All of These Characteristics and More!

  3. What is a Distributed Application? Java Client Database Database Legacy COTS COTS Java Client Server Server Legacy Client DB Client COTS Client Legacy System of Systems Network Centric Environment Heterogeneity Hardware OS, PLs High-Availability Performance Dynamic Environment Increase Productivity New/Innovative Information Use Transparent Interoperation

  4. Why is Distributed Computing Needed? • Today’s Environments Contain Applications … • Created with Multiple Prog. Languages • Executing on Heterogeneous Platforms • Locally and Geographically Distributed • Distributed Computing Applications Must … • Allow Seamless and Transparent Interoperation • Provide Tools for Engineers and Users • Result: Inter-Operating Environment • Utilize Information in New/Innovative Ways • Leveraged to Increase Productivity • Support Diverse User Activities • Dynamically Respond to Changes

  5. Who are the Players in Distributed Computing? • Stakeholders • Software Architects (Requirements) • System Designers (Solutions) • Application Builders (Implementation) • Stakeholders Striving to Provide … • System Interaction and Information Exchange • Utilization of Existing Applications in New and Innovative Ways • End-Users at Various Skill Levels and with Specific and Limited Access Requirements • Novice vs. Adept vs. Expert • Who Uses What When and for How Long?

  6. Why Must We Strive for New Techniques and Technologies? • We Must Diverge from Business as Usual • C Programming with RPC • Customized Development without Reuse • Solutions that Aren’t Extensible and Evolvable • Cobbling Together Solutions w/o Method or Reason is Unacceptable and Doomed to Fail! • We Must Face Today’s Realities • Legacy Code is Fact of Life • New Technologies Offer New Challenges • Adopt to Leverage Their Benefits • We Must Draw Careful Balance to Opt for Mature Technologies While Targeting Emerging Technologies with Potential!

  7. What are Emerging Technologies for Distributed Computing? • Distributed Object Computing (DOC) • DCE, CORBA, DCOM/OLE • Middleware for Heterogeneous Hardware and Software Environments • Java Technologies • Platform Independent Language/Environment • Enterprise Java Beans, Java IDL, JDBC • Wrappers, Middleware, File Services to Bring Together “System of Systems” • Software Agent Models and Technologies • A Mobile Agent is Application Capable of Migrating Across Network with Code and Data to Accomplish Required Tasks

  8. What are Basic JINI Concepts? • JINI Lookup Service Maintains Registry for Available Services of Distributed Application • Resources Provide Services that Registerand Joinwith JINI Lookup Service • Clients Discover and Utilize Services Based on Interface of Services • Ask Lookup for RegisterForCourse(CSE900) • Return Proxyfor Execution of Service • Location of Service Transparent to Client • Locations of Clients, Services, Lookup Service, etc., can Change over Time • Conceptually, JINI Similar to Distributed OS with Dynamically Definable/Changeable Resources

  9. Goals of Research Effort • Can JINI Support Highly-Available Distributed Applications? • Can Replicated Database Services be Registered and Available for Use by Clients? • Can JINI Support a Network-Centric Environment with Dynamic Clients and Services? • Will Clients Continue to Operate Effectively if Replicated Databases Services Fail? • Can JINI be Utilized to Maintain “minutes-off” Data Consistency of Replicas? • Is JINI Easy to Learn and Use? • What is Maturity Level of JINI Technology? • Is JINI Ready for Prime Time???

  10. Overview of Presentation • Brief Review: Background Material on JAVA • What is Java? • Object Serialization • Remote Method Invocation • Sun’s JINI Technology • What is JINI? • How Does JINI Work? • Comparison: Component-Based Development • Experimental Prototyping Effort • Assumptions and Scenarios • Prototypes: Approach and Results • Future Work • Conclusions and Recommendations

  11. Background Material on JAVA Java Visualization Java is a Third Generation, General Purpose, Platform Independent, Concurrent, Class-Based, Object-Oriented Language and Environment

  12. Background Material on JAVA Object Serialization • Object Serialization is a Bi-directional Process of • Writing an Object (Save in Serialized form) • Reading an Object (Reconstruct Serialized) • Used in: • Remote Method Invocation (RMI) • Exchange of Information Across Network • // Serialize • Person p = new Person ("Steve", "CS&E UConn"); • FileOutputStream f = new FileOutputStream("tmp"); • ObjectOutputStream s = new ObjectOutputStream(f); • s.writeObject(i); • // Deserialize • FileInputStream in = new FileInputStream("tmp"); • ObjectInputStream s = new ObjectInputStream(in); • Person p = (Person)s.readObject();

  13. Background Material on JAVABlock Diagram for RMI Client Server Hello HelloImpl HelloApplet rmic HelloImpl.java 3 5 1 2 Stub Stub Skel Skel Unmarshall Marshall Unmarshall Marshall RMI Layer NDR NDR NDR NDR Transport Transport Transport Transport 4 • Java Objects in JVMs (on Different Computers) Transparently Invoke Each Other's Methods • RMI Enables Distributed Object Computing Start rmiregistery

  14. Sun’s JINI Technology • JINI is a Sophisticated Java API • Construct Distributed Applications Using JINI by • Federating Groups of Users • Resources Provide Services (Database Access, Printing, Real-Time Sensor)for Users • JINI and Stakeholders • Core of Technologies to Architect, Design, Implement, and Test Distributed Applications • Construct Software “Resistant” to Failure • JINI and Users • High Availability Through Redundancy • Dynamic Responses to User Requests Regardless of Network & Resource Changes

  15. Sun’s JINI TechnologyKey JINI Concepts and Terms • A Resource Provides a Set of Services for Use by Clients (Users) and Other Resources (Services) • A Service is Similar to a Public Method • Exportable - Analogous to API • Any Entity Utilized by Person or Program • Samples Include: • Computation, Persistent Store, Printer, Sensor • Software Filter, Real-Time Data Source • Anything that is Relevant for Your Domain! • Services: Concrete Interfaces of Components • Services Register with Lookup Service • Clearinghouse for Resources to Register Services and Clients to Locate Services

  16. Sun’s JINI TechnologyResources & Services Register Services PrinterActions Class enqueuePrintJob dequeuePrintJob getPrinterStatus getPrinterType installPrinter removePrinter startJob cancelJob Class and Methods Define Services to be Registered Printer Resource Service Object Service Attributes • Sun’s Initial Perspective • JINI for Hardware • Printers, Digital Cameras, etc. • Plug-and-Play on Network • PrinterActions Class Defines the “Component” that is Registered with JINI JINI Lookup Service

  17. Sun’s JINI TechnologyKey JINI Concepts and Terms • Registrationof Services via Leasing Mechanism • Resource Leases Services to Lookup Service • Resources Renew Services Prior to Expiration • If not, Services Become Unavailable • Lookup Service Maintains Registry • Limit Availability of Services Based on Time, Workload, User Requirements, etc. • Services as Available “Components” • Leasing Supports High-Availability • Registration and Renewal Process • Upon Failure, Services Removed from Registry • Clients, Resources, Lookup Can Occupy Same or Different Computing Nodes

  18. Sun’s JINI TechnologyRegistration & Leasing Printer Resource PrinterActions Class enqueuePrintJob dequeuePrintJob getPrinterStatus getPrinterType installPrinter removePrinter startJob cancelJob Class and Methods Define Services to be Registered Service Object Service Attributes • FOREVER or EXPIRATION DATE (millisecs) • Renewal Must Occur Prior to Expiration • JINI Provides Lease Renewal Manager to Allow Resource to Delegate Renewal Responsibility JINI Lookup Service Leasing/Lease Renewal Lease for 5 minutes (3000000 msec) Must Renew Before 5 Minutes Expire If Not Renewed, Lookup Removes If Failure, Lookup May Still Supply Service Until Expiration (5 mins) Client MUST be SMART!

  19. Sun’s JINI TechnologySupport for Distributed Computing Redundant Lookups Clients Using Services JINI Lookup Service Java Client Resources Provide Services Database Legacy Legacy COTS Java Client Legacy Client Network COTS Database Client Legacy Database COTS Client JINI Lookup Service COTS

  20. Component Perspective and JINI Legacy Java Client Constructed via Services of Legacy, COTS, Database, etc. Lookup Registered Services Functionality via Service Reuse Services as Component APIs COTS Legacy Database COTS • Resources as Components • Resources Provide Services • What Service Provides: Component Interface • Clients, Servers, Resources, Use ComponentInterface to Design/Construct Functionality JINI Lookup Service

  21. Two Example Resources • University Application • Students can Register/Drop Courses and Check the Schedule/Catalog • Faculty can Alter Course DB and Check the Schedule/Catalog • Military Application - Database of Parts • Ability to Requisition/Add/Delete Parts • Different User Authority Based on Rank • For Both: • Client to JINI to Discover Services • Client to Resource for Method Invocation (Resembles RMI)

  22. What Does an Actual System Look Like? Java GUI UDB Client Java GUI MDB Client MDBServer GetParts GetRequisition GetReqParts WriteParts WriteRequisition DeletePart DeleteRequisition AddParts RemovePart AddRequisition UDBServer Service GetClasses(); PreReqCourse(); GetVacantClasses(); EnrollCourse(); AddCourse(); RemoveCourse(); JINI Lookup Service University DB Resource (UDB) Military Requisition DB Resource

  23. Services of Military Application • Query Service: • GetParts: Queries DB for Parts • GetRequisition: Queries DB for Requisition • GetReqParts: All Requisition Details for a Particular Part • Update Service: • WriteParts: Store Part to DB • WriteRequisition: Requisition Changes to DB • DeletePart: Deletes Part from DB • DeleteRequisition: Deletes Requisition from DB • Other Services/Methods Omitted • Notice: These are Just Public Methods Organized into Logical Groupings • JINI Allows Searching of Groupings by Service

  24. Execution Process of Client using JINI 1 Register_Client(Harris,Security Off., Military) 2 Verify_UR(Harris, Security Off.) 3 Client OK? 4 Return Result,Create_Token(Security Off., Token) 6 CreateRequisition(Token, Tank Details, Harris) 5. Discover/Lookup(MilitaryDb,Modification, CreateRequisition) Returns Proxy to Military Client Military Client Security Registration Services 11 Return Result,CreateRequisition(…) 7 IsClient_Registered(Token) 8 Return Result of IsClient_Registered(…) USR Lookup Service Security Authorization Services 9 Check_Privileges(Token, MilitaryDb, Modification, CreateRequisition, [Tank Details, Harris]) Security Policy Services MilitaryDB Resource 10 Return Result of Check_Privileges(…)

  25. Sun’s JINI Technology Key JINI Concepts and Terms • For Users, JINI Offers • Sharing of Resources (Services) over Network • Location Transparency of Users and Services • Both Critical for “Moving” Personnel • For Stakeholders, JINI Provides • Infrastructure for Federating Services in Distributed Setting • Programming Model to Register & Discover Services • Availabilityof Services Throughout Distributed Setting Leading to Ease in Constructing, Maintaining, and Evolving Network Centric Applications

  26. Sun’s JINI TechnologyWhat is JINI? • An Infrastructure for Network Centric Applications in Spontaneous Environment • Clients Enter/Leave Network Unpredictably • Resources and Services Enter/Leave due to Failure, Redundancy, Topology Change • Both Typify Present/Future Army Systems • Goals of JINI • Plug-and-Play of Clients and Services • Erasing Hardware/Software Distinction: Everything is a Service • Enable Spontaneous Network Applications • Architecture where Services Define Function • Strive for Easy to Use/Understand Technology

  27. Sun’s JINI Technology Overall Computing Architecture and JINI.

  28. Sun’s JINI Technology Components and Dependencies Leasing Transaction Manager Discovery/Join Transactions JavaSpaces Distributed Security Lookup Events Lookup service Programming Model Services Infrastructure Base Java Java VM Java APIs JNDI RMI JavaBeans Enterprise Beans Java Security JTS JMS Java + JINI

  29. Sun’s JINI TechnologyHow Does JINI Work? • Distributed Application Constructed Using One or More Lookup Services • Lookup Service Support Interactions by • Resources: “Advertise” ServicesDiscover, Register Services, Renew Lease • Client: “Locate/Utilize” ServicesDiscover, Search for Services, Invocation • Multiple Lookup Services • Resources Responsible for Registering All • Clients Interact with Multiple Lookups • Stakeholders Must Write “Apropos” Code • Discovery Initiates Process for Client or Resource

  30. Sun’s JINI TechnologyDiscovery by Resource & Client Resource Service Object Service Attributes JINI Lookup Service JINI Lookup Service Discovery to Register Services Discovery to Locate Services Client

  31. Sun’s JINI TechnologyHow Does JINI Work? • Resources Discover and Join Lookup Service • When Resources Leave or Fail to Renew Leases • Lookup Service Must Adjust Registry • Time Lag Between Departure and Removal of Services from Registry • What Happens When Client Receives Service Just Prior to Failure? • Utilization of Java Exception Handling • Client Code Written to Dynamically Adapt • Resource Register • Services on Class-by-Class Basis • Service Object (Java API - Method Signatures) • Optional Descriptive Service Attributes

  32. Sun’s JINI TechnologyJoin, Lookup, and Service Invocation Request Service AddCourse(CSE900) Service Object Service Attributes Register & Lease Services CourseDB Class Contains Method AddCourse ( ) Return Service Proxy to AddCourse( ) Join Service Invocation via Proxy by Transparent RMI Call Resource Service Object Service Attributes Lookup Service Registry of Entries Client 1. Client Invokes AddCourse(CSE900) on Resource 2. Resource Returns Status of Invocation

  33. Experimental Prototyping Effort Goals and Objectives • High Availability of Services and Data • Volatility of Resources, Clients, and Network • Clients Rely on Lookup Service to Locate and Execute Services Against Replicated Resources • Databases Replicated in Multiple Workstations • Redundant Services Available if Failure • “Minutes-Off” Allowed - Sync Over Time • No Lost Updates During Modification Process • Characteristics of Enterprise Applications • Movement of Clients/Reconfigure Networks • Need for Data Availability on Demand • Receive “Current” Data if Client/Resource Plugs Back In

  34. Experimental Prototyping Effort Assumptions and Scenario • Employ University Application • Person and Course Database Repositories • Students Query Course Information • Faculty Query, Change, Create Schedule • Authentication and Authorization • Analogous to Tasks in Many Domains • Client Java GUI for University ApplicationCorrespond to New Java GUI for Domain • Resource Java Application for Database ResourceLegacy Relational Database in a Domain • Prototyping Environment: 3 NT 400 Mz. PCs • JINI 1.0 and JDK/JRE 2 v1.2.2 • Visual Café 3.0 and Microsoft Access

  35. Experimental PrototypesRapid, Incremental Design/Development • First Prototype: Explore JINI and Develop Baseline University Application: Single Computer • Second Prototype:Client and Services Spread to Two Computers: Lookup with Database Services • Third Prototype: Extend Second to Multiple Clients and Three Computers • Fourth and Fifth Prototypes • Single Client, Three Replicated Databases • Change in One Replica Propagation to Others • Testing of Replica Failures on Application • Fifth: Multiple Clients/Simultaneous Updates • Sixth Prototype: Extends Fifth Prototype with Pre-Lookup Services for Locking During Updates

  36. Prototype One • Functionality: • One GUI Client/One Database Resource (and its Services) • Microsoft Access for PersonDB & CourseDB • Client, Services, and JINI Lookup Service All Run on the Same NT Workstation • Purposes: • Learn about Various Technologies • Verify Installation of Jini1.0, JDK 2 v1.2.2, Visual Cafe3.0 • Retrieve Data From MS Access DB Using Java Program - This is the Database Resource! • Build a Client/Services Application

  37. Services Console

  38. Services GUI

  39. Executing the Database ResourceThe DBServer Console

  40. GUIClient Console

  41. User Login Screen

  42. Invalid Login

  43. Select Semester

  44. List of Courses

  45. Results from Prototype One • Achievements: • Learned the Basic Concepts of JINI • Proper Installation of JDK1.2, JINI 1.0, and Visual Café 3.0 • Establish Environment Variables and Setup Information for Visual Café and JINI • Use of JINI’s Services GUI to Start Httpd, Rmid and Lookup Services • JDBC/ODBC to Connect to MS Access DB • Drawbacks: • Application Runs on Single Workstation • No Usage of Proxies - Direct Database Calls from Client to Microsoft Access

  46. Prototype Two and Three • Functionality: • Distributes the Client and Database Resource (and its Services) on Multiple NT Workstations • Lookup Service Runs on the Same Workstation as Database • Fully Functional GUI Client for Course Access • Prototype Three Extends Two with Multiple Clients • Purposes: • Verify Whether the Same JINI Concepts Function Across Multiple Nodes (Two) • Insure That Multiple Clients Can Interact With the Same Lookup Service (Three)

  47. Block Diagram for Prototype Three Client1 Client2 1. Get services from Course DB Client3 Another NT 2. Service List Proxies JINI Lookup Service 3. Invoke addCourse(CSE900) Database Resource One NT PersonDB Class verifyUser CourseDB Class getClasses getClassDescription preReqCourse getVacantClasses addCourse removeCourse updateCourse Discover, Join, Reg. Services

  48. Add Course

  49. Confirmation

  50. Course Information

More Related