21
Caching the MDSPlus Data via Hibernate By Ajith M Jose Comp6703 Project Client: Raju Karia Supervisor: Dr.Henry Gardner (Development of “WebScope”)

Caching the MDSPlus Data via Hibernate

  • Upload
    reuel

  • View
    62

  • Download
    2

Embed Size (px)

DESCRIPTION

Caching the MDSPlus Data via Hibernate. ( Development of “WebScope”). By Ajith M Jose Comp6703 Project Client: Raju Karia Supervisor: Dr. Henry Gardner. Outline. Introduction What is “Hibernate” ? What is “MDSPlus” ? Working of “WebScope” Demonstration Software Requirements - PowerPoint PPT Presentation

Citation preview

Page 1: Caching the MDSPlus Data via Hibernate

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

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

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

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

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

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

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

Development of “WebScope”

• WebScope (EScope over web)

Page 9: Caching the MDSPlus Data via Hibernate

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

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

Demonstration

Page 12: Caching the MDSPlus Data via Hibernate

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

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

Planned Mile Stones

Page 15: Caching the MDSPlus Data via Hibernate

Achieved Mile Stones

Page 16: Caching the MDSPlus Data via Hibernate

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

Hibernate Mapping file

MESSAGE_ID MESSAGE_TEXT

MESSAGES TABLE

Page 18: Caching the MDSPlus Data via Hibernate

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

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

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

Questions ?