Download - Caching the MDSPlus Data via Hibernate
![Page 1: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/1.jpg)
Caching the MDSPlus Data via Hibernate
By
Ajith M JoseComp6703 Project
Client: Raju Karia Supervisor: Dr.Henry Gardner
(Development of “WebScope”)
![Page 2: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/2.jpg)
Outline
• Introduction• What is “Hibernate” ?• What is “MDSPlus” ? • Working of “WebScope”• Demonstration• Software Requirements• Client Requirements• Major Issues Faced• Project Planning• Conclusion• Questions
![Page 3: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/3.jpg)
Introduction
• my project
• retrieve datasets from MDSPlus server using a web GUI
• cache data using Java object/relational mapping solution Hibernate
• based on the work done by Shi Hu
![Page 4: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/4.jpg)
Hibernate
• powerful, ultra-high performance object/relational persistence and query service for Java
• uses HDLCA (Hibernate Dual-Layer Cache Architecture)
• two levels of cache• Session level- serves one client or
session at one time• JVM level- works on a global basis
(for different sessions using same instance of JVM)
• Can use Hibernate query language (HQL) or native SQL
![Page 5: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/5.jpg)
MDSPlus
-millions of datasets are generated during fusion experiments
-data storage and management system
-developed for fusion researchers
-researchers from different parts of the world connect to the MDSPlus using client side applications like “EScope” and “JScope”
-they connect to the MDSPlus server and retrieve the required datasets
![Page 6: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/6.jpg)
Current way of retrieving data from MDSPlus
Issues with the current way of retrieving data from MDSPlus
• no caching of data
• researchers need to wait for the same amount of time even when accessing the previously accessed datasets
• longer period to retrieve data
• researchers need to install EScope software into their machine
![Page 7: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/7.jpg)
Solution to the issues with retrieving data from MDSPlus
WebScope
-uses java object/relational mapping solution Hibernate to cache datasets from the MDSPlus so that the researchers can get the datasets quickly
-works from a web server and retrieve the MDSPlus datasets ,so that the researchers need not install any specific software to run it.
![Page 8: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/8.jpg)
Development of “WebScope”
• WebScope (EScope over web)
![Page 9: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/9.jpg)
Software Requirements
• Jakarta Tom Cat 5.0
• Hibernate3.0
• JDK1.5
• HSQLDB
• Java Applet enabled Web Browser
![Page 10: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/10.jpg)
Client Requirements• Use the “Hibernate” package to make the data
access from the MDSPlus server faster• Allow researchers to retrieve and view the required
dataset from the MDSPlus server using a web browser
• Obtain information about researchers who use the data from the MDSPlus.
• Track the actions of the Researchers• Allow researchers to contribute meta data based on
the retrieved dataset• Allow them to view all the user contributed
metadata• Software should work on all the platforms
![Page 11: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/11.jpg)
Demonstration
![Page 12: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/12.jpg)
Major Issues Faced
• Linux specific issues - due to specific nature of project, used the
Linux machine provided by department. - my Linux skills were very basic - had real nightmare in configuring required
software packages - thanks to Raju, Henry and Hugh• Learning Curve - Hibernate - Tom Cat - Java Servlets
![Page 13: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/13.jpg)
Project Scheduling
• Weekly meeting with my client and supervisor• Had to change the initial time table since I took
extra 2 weeks for the software installation and configuration.
• Scheduled the work for every week based on the client/supervisor’s feedback
• Maintained a work book
![Page 14: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/14.jpg)
Planned Mile Stones
![Page 15: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/15.jpg)
Achieved Mile Stones
![Page 16: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/16.jpg)
Hibernate-Implementation• Uses persistent classes that are mapped to database
tables –Example: Message.java• Fields id and text will be converted to corresponding
database table fields
![Page 17: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/17.jpg)
Hibernate Mapping file
MESSAGE_ID MESSAGE_TEXT
MESSAGES TABLE
![Page 18: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/18.jpg)
Java Code
• To store value to the table MESSAGES
After the Storage of DataMESSAGES TABLE
MESSAGE_ID MESSAGE_TEXT
1 Ajith M Jose
![Page 19: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/19.jpg)
Future Work
• Implementation of a metadata index based search mechanism
• Implementation of a more powerful database (MySql)
• Implementation of an administration side which gives special privileges to the administrator
• Implementation of an engine which allows the users to create metadata tables dynamically.
• Implementation of a new mechanism to plot the graphs (removing applets).
![Page 20: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/20.jpg)
Conclusion
• Hibernate package is a very powerful tool to perform caching operations.
• It makes the life of programmers easier and the life of users faster.
• Through the successful implementation of the “WebScope”, it is now possible for the researchers to quickly access the MDSPlus datasets through a web browser.
![Page 21: Caching the MDSPlus Data via Hibernate](https://reader035.vdocuments.net/reader035/viewer/2022062301/5681448f550346895db12ba4/html5/thumbnails/21.jpg)
Questions ?