The Globus Toolkit 3 Programmer s Tutorial
186 pages
English

The Globus Toolkit 3 Programmer's Tutorial

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
186 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

The Globus Toolkit 3
Programmer's Tutorial
Borja Sotomayor The Globus Toolkit 3 Programmer's Tutorial
Borja Sotomayor
Copyright © 2003, 2004 Borja Sotomayor
This tutorial is available for use and redistribution under the terms of the Globus Toolkit Public License
[http://www-unix.globus.org/toolkit/license.html] Table of Contents
Introduction ............................................................................................................ viii
GT3 Prerequisite Documents .............................................................................. viii
Audience ........................................................................................................ viii
Assumptions ..................................................................................................... ix
Related Documents ............................................................................................ ix
Document Conventions ........................................................................................ x
Code ......................................................................................................... x
Shell commands .......................................................................................... x
Notes ........................................................................................................ x
About the author & acknowledgments .................................................................... xi
Acknowledgments ..... ...

Sujets

Informations

Publié par
Nombre de lectures 70
Langue English
Poids de l'ouvrage 1 Mo

Extrait

The Globus Toolkit 3 Programmer's Tutorial Borja Sotomayor The Globus Toolkit 3 Programmer's Tutorial Borja Sotomayor Copyright © 2003, 2004 Borja Sotomayor This tutorial is available for use and redistribution under the terms of the Globus Toolkit Public License [http://www-unix.globus.org/toolkit/license.html] Table of Contents Introduction ............................................................................................................ viii GT3 Prerequisite Documents .............................................................................. viii Audience ........................................................................................................ viii Assumptions ..................................................................................................... ix Related Documents ............................................................................................ ix Document Conventions ........................................................................................ x Code ......................................................................................................... x Shell commands .......................................................................................... x Notes ........................................................................................................ x About the author & acknowledgments .................................................................... xi Acknowledgments ...................................................................................... xi I. Getting Started ....................................................................................................... 12 1. Key Concepts ................................................................................................ 14 OGSA, OGSI, and GT3 .............................................................................. 14 OGSA ............................................................................................. 15 OGSI .............................................................................................. 16 The Globus Toolkit 3 ......................................................................... 16 I still don't get it: What is the difference between OGSA, OGSI, and GT3? .. 16 A short introduction to Web Services ............................................................ 16 A Typical Web Service Invocation ....................................................... 18 Web Services Addressing ................................................................... 19 Web Architecture .................................................................. 19 What a Web Service Application Looks Like ......................................... 20 What is a Grid Service? .............................................................................. 21 Stateful and potentially transient services ............................................... 22 Lifecycle management ....................................................................... 24 Service Data ..................................................................................... 24 Notifications .................................................................................... 24 Service Groups ................................................................................. 25 portType extension ............................................................................ 25 GSH & GSR .................................................................................... 26 The Globus Toolkit 3 ................................................................................. 27 WSRF & GT4 .......................................................................................... 28 The Globus Toolkit 4 ......................................................................... 29 Don't Panic ...................................................................................... 29 Where to learn Java & XML ....................................................................... 30 2. Installation ................................................................................................... 31 II. GT3 Core ............................................................................................................ 32 3. Writing Your First Grid Service in 5 Simple Steps ............................................... 35 Step 1: Defining the interface in GWSDL ...................................................... 36 A general description of the interface .................................................... 37 The GWSDL code ............................................................................. 37 Namespace mappings ......................................................................... 39 Differences between WSDL and GWSDL .............................................. 40 Step 2: Implementing the service in Java ....................................................... 41 Step 3: Configuring the deployment in WSDD ................................................ 43 The 'service name' ............................................................................. 44 The (again) ................................................................... 44 className and baseClassName ............................................................ 45 The WSDL file ................................................................................. 45 The common parameters ..................................................................... 45 Step 4: Create a GAR file with Ant ............................................................... 45 Ant ................................................................................................. 46 iv The Globus Toolkit 3 Programmer's Tutorial Our handy multipurpose buildfile and script ........................................... 47 Creating the MathService GAR ............................................................ 48 Step 5: Deploy the service into a grid services container ................................... 49 A simple client ......................................................................................... 49 4. Operation Providers ....................................................................................... 52 Inheritance versus Operation Providers .......................................................... 52 Writing an operation provider ...................................................................... 55 Defining the service interface .............................................................. 55 Implementing the service .................................................................... 55 Deploying the Grid Service ......................................................................... 58 A simple client ......................................................................................... 59 5. Service Data ................................................................................................. 61 The logic behind Service Data ..................................................................... 61 Service Data in Grid Services ...................................................................... 62 A simple example ............................................................................. 62 A slightly less simple example ............................................................. 63 So... where and how exactly do we define Service Data? ........................... 65 A service with Service Data ........................................................................ 65 The MathData SDE ........................................................................... 66 Service Interface ............................................................................... 67 Namespace mappings ......................................................................... 69 Service Implementation ...................................................................... 69 Deployment Descriptor ...................................................................... 71 Compile and deploy ........................................................................... 71 A client that accesses Service Data ............................................................... 72 Compile and run ............................................................................... 73 The GridService Service Data ...................................................................... 74 The PrintGridServiceData client ........................................................... 75 6. Notifications ................................................................................................. 76 What are notifications? ............................................................................... 76 Pull Notifications vs. Push Notifications ................................................ 77 in GT3 .......................................................................... 78 A notification service ................................................................................. 79 Defining the service interface .............................................................. 79 Service Implementation ...................................................................... 80 Deployment Descriptor ...................................................................... 80 Compile and deploy ........................................................................... 81 A notification client ................................................................................... 81 Math Listener ................................................................................... 81 Math Adder ..................................................................................... 84 7. Transient Services .......................................................................................... 86 Adding transience to MathService ...................
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents