wsrf & wsrf’s application in vo-das

26
WSRF & WSRF’s Applicatio n in VO-DAS Haijun Tian ChinaVO 2006-12-01

Upload: henry

Post on 25-Feb-2016

33 views

Category:

Documents


0 download

DESCRIPTION

WSRF & WSRF’s Application in VO-DAS. Haijun Tian ChinaVO 2006-12-01. OutLine. Key Concepts How to Write the Stateful WS Resource Properties Lifecycle Management WS-Notifications VO-DAS ‘s assignment. Key Concepts-- OGSA. OGSA(Open Grid Services Architecture ) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: WSRF & WSRF’s Application in VO-DAS

WSRF & WSRF’s Application in VO-DASHaijun Tian

ChinaVO2006-12-01

Page 2: WSRF & WSRF’s Application in VO-DAS

OutLine• Key Concepts• How to Write the Stateful WS• Resource Properties• Lifecycle Management• WS-Notifications• VO-DAS ‘s assignment

Page 3: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- OGSA• OGSA(Open Grid Services Architecture) OGSA aims to define a common, standard, and open architecture for grid-based applications ( practically, resource management, job management, security, etc)

Page 4: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WSRF• OGSA requires ‘stateful services’ (Manage the distributed nodes, jobs, resources, etc)• WSRF (Web Service Resource Framework) WS-R = WS + Resource

Page 5: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WS• WS is distributed computing technology,

practically remotely-accessible methods. • WS is oriented-software ,not oriented-

humans• WS are platform-independent and

language-independent• Most WS use HTTP for transmitting

messages (such as the service request and response).

Page 6: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WS

Client and server stubs are generated from the WSDL file

How does this work in practice?

Page 7: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WSA Typical Web Service Invocation

Page 8: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WS

The server side in a Web Services application

Jakarta Tomcat

Apache Axis

Apache

Page 9: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WS

A stateless Web Service invocation

Page 10: WSRF & WSRF’s Application in VO-DAS

Key Concepts-- WSRF

A stateful Web Service invocation

Page 11: WSRF & WSRF’s Application in VO-DAS

Key Concepts– GT4• Globus Toolkit is a software toolkit, which is used to program grid-based applications.• It include quite a few high-level services (resource, job, security services, etc) that we can use to build Grid applications• It is a realization of OGSA requirements• WSRF is the core of GT4. Most of the Grid Services are implemented on top of WSRF.• GT4 isn’t the only WSRF implementation, such as WSRF.NET

Page 12: WSRF & WSRF’s Application in VO-DAS

Relationship between OGSA,GT4, WSRF and Web Services

Page 13: WSRF & WSRF’s Application in VO-DAS

How to Write the Stateful WSBefore we start programming

• Be familiar with Java and XML• Installing the GT4 Java WS Core (set

environment variable)

• Eclipse & GDT

Page 14: WSRF & WSRF’s Application in VO-DAS

How to Write the Stateful WS When writing and deploying a WSRF WS, You Must follow five simple steps:• Define the service’s interface. WSDL• Implement the service. Java• Define the deployment parameters. WSDD & JNDI• Compile everything and generate a GAR file. Ant• Deploy service. GT4 tool (globus-deploy-gar)

Page 15: WSRF & WSRF’s Application in VO-DAS

How to Write the Stateful WS

Page 16: WSRF & WSRF’s Application in VO-DAS

Resource Properties

• GetResourceProperty : Given its QName• GetMultipleResourceProperties Access the value of several resource properties at once, given each of their QNames.• SetResourceProperties Update: Change the value of a RP with a new value. Insert: Add a new RP with a given value. Delete: Eliminate all occurrences of a certain RP.• QueryResourceProperties: XPath

Page 17: WSRF & WSRF’s Application in VO-DAS

Lifecycle Management

• WS-Resource Lifetime specification offers two lifecycle management solutions:

Immediate destruction and Schedule destruction.

Page 18: WSRF & WSRF’s Application in VO-DAS

Lifecycle Management --Immediate • Immediate destruction The factory service is responsible for creating the resources, but destruction must be requested to each individual resource through the instance service. In the WSDL, we simply extend from the standard WSRF ImmediateResourceTermination portType, which adds a destroy operation to our portType that will instruct the current resource to terminate itself immediately.

Page 19: WSRF & WSRF’s Application in VO-DAS

Lifecycle Management --Scheduled

• This method allows our application to purge resources that for some reason (network failure, programmer error, etc) have become unavailable.• In WSDL file, Our portType requires extents standard WSRF protType: ScheduledResourceTermination • Operation: SetTerminationTime • RPs: TerminationTime & CurrentTime (the time in the machine that hosts the resource)• In JNDI deploy file, need to add sweeperDelay parameter, specified in milliseconds, which control how often the container will check if a resource is past its termination time.

Page 20: WSRF & WSRF’s Application in VO-DAS

WS-Notifications• WS-Notifications is not a part of WSRF, but it

has strong ties to it.

• Let’s suppose that our software had several distinct parts (such as client/server) and that one of the parts needs to be aware of the changes that happen in one of the other parts.

Page 21: WSRF & WSRF’s Application in VO-DAS

WS-NotificationsKeeping track of changes using polling

Page 22: WSRF & WSRF’s Application in VO-DAS

WS-NotificationsKeeping track of changes using notifications

Page 23: WSRF & WSRF’s Application in VO-DAS

WS-Notifications (BaseNotification)

A typical WS-Notification interaction

Page 24: WSRF & WSRF’s Application in VO-DAS

• VO-DAS’ assignment

Page 25: WSRF & WSRF’s Application in VO-DAS

Referrence:• The Globus Toolkit 4 Programmer’s Tutorial(Borja Sotomayor University of Chicago Department of Computer Science)

Page 26: WSRF & WSRF’s Application in VO-DAS

• The End, Thanks!