Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski [email protected],...
-
date post
18-Dec-2015 -
Category
Documents
-
view
219 -
download
2
Transcript of Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski [email protected],...
![Page 1: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/1.jpg)
Cyberaide JavaScript: A JavaScript Commodity Grid Kit
Gregor von [email protected], (585) 298 5285
Fugang Wanghttp://www.cyberaide.org
http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1104/18/2304/18/23
![Page 2: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/2.jpg)
Outline
• Approaches to access the Grid- Infrastructure specific tools; middleware; portal
• Web 2.0 technologies applied to Grid portal- JSR 168 portal- Ajax, RESTful, RSS/ATOM, Mashup- A comparison
• The Cyberaide JavaScript framework- Introduction and architecture- A reusable JavaScript library; A portal
• Conclusion and discussion04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 22
![Page 3: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/3.jpg)
Approaches to Access Grid
• Grid Infrastructure- Condor, PBS, LSF, SGE- Globus, UNICORE, EGEE
• Upperware– Workflow tools with GUIs
• Many use cogkit.org– Portals
• Teragrid portal, Gridsphere, OGCE• Many of them use cogkit.org
• Middleware/Upperware- CoG Kit (cogkit.org)- Cyberaide.org Gridshell (cyberaide.org)
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 33
![Page 4: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/4.jpg)
Portal technologies – JSR168
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 44
• Java Portlet Specification (JSR168)Portlets
ContainerPortlets
Container
LoginLogin
InfoInfo
FAQFAQ
WelcomeWelcome
Server
Portlet Window
Portlet Fragment
Portal ServerPortal Server
![Page 5: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/5.jpg)
Portal technologies – Web 2.0
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 55
• Web 2.0 technologies applied to web portals- Web 2.0, a buzz word. “Web as platform”?- Asynchronous JavaScript and XML (Ajax)- Representational State Transfer (REST)- Mashup- Atom and RSS
![Page 6: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/6.jpg)
Portal technologies – Web 2.0
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 66
……
• Ajax- XML as data interchange medium- Asynchronous communication with server side- XHTML, CSS, and JavaScript to manipulate and render DOM components- Decrease user waiting time and increase user experience
Static pages, CGI, ServletStatic pages, CGI, Servlet
Web pageWeb page WebBrowser
WebServer
Ajax engineAjax engine
JS code, CSS, libraries, web resources
JS code, CSS, libraries, web resources
Rendered Web pageRendered Web page
![Page 7: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/7.jpg)
Portal technologies – Web 2.0
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 77
• REST/RESTful web service- Roy Fielding’s doctoral dissertation in 2000- Resource = functionality + state- Unique addressable through URI for each resource- Use HTTP verbs such as GET, POST to do the CRUD operations (Create, Read, Update, Delete)- Eliminating the use of additional message layer such as SOAP or session maintaining cookies- Simplicity is beauty
• RSS and Atom- Web content publishing- Publish “feed”; Subscribe and read- Aggregating
![Page 8: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/8.jpg)
Portal technologies – Web 2.0
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 88
• Mashup- Data from multiple sources- Mingle and combine- Presented in a new perspective
Site ASite A Site BSite B Site CSite C
Web ServiceWeb Service
Web ClientWeb Client
![Page 9: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/9.jpg)
Portal technologies – Web 2.0
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 99
• Mashup applied to JavaScript Grid Portal- Shows mashup happens both in server side and client side
Teragrid Host ATeragrid Host A Teragrid Host BTeragrid Host B Teragrid REST Info service
Teragrid REST Info service
JavaScript CoG Kit serviceJavaScript CoG Kit service
JavaScript API & PortalJavaScript API & Portal
![Page 10: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/10.jpg)
Portal approaches: a comparison
• JSR168 Portal– Generate markup
segments for each portlet and assembly them into a full page
– Info aggregated at server side
– Portlets displayed separately
– Relatively old technology and is to be enhanced by newer standard (JSR286)
• Web 2.0 Portal– Combine raw data from
different site/web services– Content aggregation can
happen in server side or client side
– Could combine data from different source and present in a totally new way
– Web 2.0 technologies used to provide better user experience
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1010
![Page 11: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/11.jpg)
A Web 2.0 Grid portal and reusable JavaScript CoG Kit
• Multi-tier SOA based framework• Grid services are exposed through JavaScript
library in client side for those web based Grid application developers
• A generic purpose Grid portal built upon the JavaScript CoG Kit enable access to Teragrid through web browser
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1111
![Page 12: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/12.jpg)
System architecture
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1212
![Page 13: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/13.jpg)
JavaScript Library enables Grid access
• JavaScript library to consume Java based web services while providing a higher level abstraction for web based Grid application developers
• JavaDoc style documentation-
https://lily01.rit.edu:8443/grid/jscogdoc/jsdoc/index.html
- Subject to change since it is still under active development
• Reusable to construct Grid portal or other domain specific scientific gateways upon it
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1313
![Page 14: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/14.jpg)
The Portal: Mimics a Desktop
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1414
![Page 15: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/15.jpg)
Teragrid Information Services
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1515
![Page 16: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/16.jpg)
Job Management
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1616
![Page 17: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/17.jpg)
File Transfer
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1717
![Page 18: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/18.jpg)
Cyberaide.org
04/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1818
![Page 19: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/19.jpg)
Conclusions and Discussion
• Road to Grid- Abstraction and reuse- More user-friendly and lower barrier- Less user involved setup and configuration- Architecture gets more complicated- Hide more complexity behind the “cloud”
• Trends- Service Oriented Architecture (SOA) / Web services- Software As A Service (SAAS)- Web application / Rich Internet Application- Cloud
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 1919
![Page 20: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/20.jpg)
Thanks!
Any questions?
585 298 5285 (Gregor)
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 2020
![Page 21: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/21.jpg)
References• Java CoG Kit. http://www.cogkit.org/• Globus Toolkit. http://www.globus.org/toolkit/• JSR 168: Portlet Specification. http://www.jcp.org/en/jsr/detail?id=168• OASIS Web Services for Remote Portlets (WSRP). http://www.oasis-
open.org/committees/tc_home.php?wg_abbrev=wsrp• Myrit portal. http://my.rit.edu• Teragrid user portal. http://www.teragrid.org• Gridsphere portal framework. http://www.gridsphere.org/• The Open Grid Computing Environments Portal and Gateway Toolkit (OGCE
Portal). http://www.collab-ogce.org/• D. Gannon, J. Alameda, O. Chipara, M. Christie, V. Dukle, L. Fang, M. Farrellee,
G. Kandaswamy, D. Kodeboyina, S. Krishnan, C. Moad, M. Pierce, B. Plale, A. Rossi, Y. Simmhan, A. Sarangi, A. Slominski, S. Shirasuna, and T. Thomas, "Building grid portal applications from a web service component architecture," Proceedings of the IEEE, vol. 93, no. 3, pp. 551-563, 2005. [Online]. Available: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1398010
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 2121
![Page 22: Cyberaide JavaScript: A JavaScript Commodity Grid Kit Gregor von Laszewski laszewski@gmail.com, (585) 298 5285 Fugang Wang .](https://reader035.fdocuments.in/reader035/viewer/2022081516/56649d235503460f949f9fda/html5/thumbnails/22.jpg)
References – cont’d• Thomas, M., Burruss, J., Cinquini, L., Fox, G., Gannon, D., Glilbert, I.,
von Laszewski, G., Jackson, K., Middleton, D., Moore, R., Pierce, M., Plale, B., Rajasekar, A., Regno, R., Roberts, E., Schissel, D., Seth, A., Schroeder, W.: Grid portal architectures for scientific applications. J. Phys. 16, 596–600 (2005)
• R. Barbera, A. Falzone, A. Rodolico: “The GENIUS Grid Portal”, Computing in High Energy and Nuclear Physics, 24-28 March 2003, La Jolla, California
• Anand Natrajan, Anh Nguyen-Tuong, Marty A. Humphrey and Andrew S. Grimshaw, “The Legion Grid Portal”, Concurrency and Computation: Practice and Experience Vol. 14, Grid Computing environments Special Issue 13-14, 2002.
• G. Singh, E. Deelman, G. Mehta, K. Vahi, M. Su, B. Berriman, J. Good, J. Jacob, D. Katz, A. Lazzarini, K. Blackburn, S. Koranda, "The Pegasus Portal: Web Based Grid Computing", The 20th Annual ACM Symposium on Applied Computing, Santa Fe, NM, Mar. 13 -17, 2005.
04/18/2304/18/2304/18/2304/18/23 http://cyberaide.orghttp://cyberaide.orghttp://cyberaide.orghttp://cyberaide.org 2222