Docstoc

downloading

Document Sample
downloading Powered By Docstoc
					       Globus WS Core and Tools
l   Java WS Core Features
    – Rachana Ananthakrishnan, Argonne
      National Laboratory
l   Authoring Services using Introduce
    – Ashish Sharma, Ohio State University
l   Grid Remote Application Virtualization
    Interface
    – Ravi Madduri, Argonne National Laboratory



                                                  1
Java WS Core Features
 Rachana Ananthakrishnan
       Mike D’Arcy
       Tom Howe

                           2
                  Contents
l   Overview of Java WS Core
l   Features new in GT 4.2
l   Java WS Core Performance
l   Current work in Java WS Core




                                   3
                Java WS Core
l   Development kit for building stateful Web
    Services
l   Implementation of WS Resource
    Framework (WSRF) and WS Notification
    (WSN) family of specifications
    – Standard interface for interactions with
      stateful web services




                                                 4
          WSRF/WSN in a Nutshell
                                 l   Service
                                 l   State representation
                                     – Resource
        Service
                     GetRP           – Resource Property
EPR                GetMultRPs    l   State identification
 EPR                                 – Endpoint Reference
  EPR                SetRP
        Resource                 l   State Interfaces
                    QueryRPs
                                     – GetRP, QueryRPs,
          RPs       Subscribe          GetMultipleRPs, SetRP
                   SetTermTime   l   Lifetime Interfaces
                                     – SetTerminationTime
                     Destroy
                                     – ImmediateDestruction
                                 l   Notification Interfaces
                                     – Subscribe
                                     – Notify
                                 l   ServiceGroups
                                                               5
                      GT4 and Web Services

                                   User Applications



                                 Custom          GT4
(e.g., Apache Axis)




                                                               and Admin
                                              WSRF Web
  GT4 Container




                                                                Registry
                      Custom      WSRF
                       Web       Services      Services
                      Services

                                 WS-A, WSRF, WS-Notification


                                 WSDL, SOAP, WS-Security


                                                                           6
        GT4 WS Core in a Nutshell
                                 Implementation of WSRF:
                                       Resources,
                                   EndpointReferences,
                                   ResourceProperties
        Service
                     GetRP                         Operation Providers: pre-
                                                   build implementations of
EPR                GetMultRPs                          WSRF operations
 EPR
  EPR                SetRP
        Resource                                Notification implementation:
                    QueryRPs                    Topics, TopicSet, Embedded
          RPs                                  Notification Consumer service
                    Subscribe

                   SetTermTime             Implementations of Resources
                                                (ReflectionResource,
                     Destroy
                                           PersistentReflectionResource)
                                              and ResourceProperties
                                             (SimpleResourceProperty,
                                            ReflectionResourceProperty)



                                                                               7
        GT4 WS Core in a Nutshell

                                         ResourceHome: The home
        Service                            “owns” the Resource
                     GetRP                instances in the service

EPR                GetMultRPs                       SingletonResourceHome:
 EPR                                                manages single instance
  EPR                SetRP                                 of Resource
        Resource
                    QueryRPs
          RPs       Subscribe

                   SetTermTime
  ResourceHome       Destroy     ResourceHomeImpl: manages
                                 multiple Resource instances.
                                  Supports resources with in-
                                 memory state and resources
                                 with persistent (on disk) state



                                                                              8
            GT4 WS Core in a Nutshell

Service Container
                                        Service Container: host
            Service                       multiple services in
             Service      GetRP           container; one JVM
               Service      GetRP               process
                             GetRP
                       GetMultRPs
   EPR                   GetMultRPs
    EPR                    GetMultRPs
      EPR
     EPR                  SetRP         …more details: based
        EPR
       EPRResource          SetRP
         EPRResource          SetRP        on AXIS service
              Resource QueryRPs
                          QueryRPs      container, processes
              RPs           QueryRPs
                        Subscribe         SOAP messages,
               RPs        Subscribe       ResourceContext
                 RPs        Subscribe
                      SetTermTime            extension.
                        SetTermTime
       ResourceHome       SetTermTime
                         Destroy
         ResourceHome      Destroy
          ResourceHome       Destroy




                                                                  9
            GT4 WS Core in a Nutshell

Service Container                             Secure Communication:
                                               Transport, Message,
            Service                     PIP
                                              Conversation (Transport
             Service      GetRP                 demonstrates best
               Service      GetRP
                             GetRP      PDP       performance)
   EPR                 GetMultRPs
    EPR                  GetMultRPs
     EPR
      EPR                  GetMultRPs
                          SetRP
        EPR
       EPRResource          SetRP
         EPRResource          SetRP            Configurable Security
              Resource QueryRPs
                          QueryRPs            Policies for authorization
              RPs           QueryRPs
                        Subscribe
               RPs        Subscribe
                 RPs        Subscribe
                      SetTermTime
                        SetTermTime
       ResourceHome       SetTermTime
                         Destroy
         ResourceHome      Destroy
          ResourceHome       Destroy




                                                                           10
            GT4 WS Core in a Nutshell
                                              WorkManager: “thread
Service Container
                                              pool”, site independent
                                        PIP      “work” manager
            Service
             Service      GetRP
               Service      GetRP
                             GetRP
                       GetMultRPs       PDP
   EPR                   GetMultRPs
    EPR                    GetMultRPs
      EPR
     EPR                  SetRP
        EPR
       EPRResource          SetRP
         EPRResource          SetRP
              Resource QueryRPs
                          QueryRPs
              RPs           QueryRPs
                        Subscribe
               RPs        Subscribe
                 RPs        Subscribe            JNDI Directory: manages
                      SetTermTime
                        SetTermTime               internal, shared objects
       ResourceHome       SetTermTime
                         Destroy                     (ResourceHomes,
         ResourceHome      Destroy                     WorkManager,
          ResourceHome       Destroy             Configuration objects,…)

 WorkManager                 JNDI Directory



                                                                             11
                GT4 WS Core in a Nutshell
Apache Tomcat
                                                   Deploy Service
  Service Container
                                                Container “standalone”
                                          PIP     or within Apache
              Service                                  Tomcat
               Service      GetRP
                 Service      GetRP
                               GetRP
                         GetMultRPs       PDP
     EPR                   GetMultRPs
      EPR                    GetMultRPs
        EPR
       EPR                  SetRP
          EPR
         EPRResource          SetRP
           EPRResource          SetRP
                Resource QueryRPs
                            QueryRPs
                RPs           QueryRPs
                          Subscribe
                 RPs        Subscribe
                   RPs        Subscribe
                        SetTermTime
                          SetTermTime
         ResourceHome       SetTermTime
                           Destroy
           ResourceHome      Destroy
            ResourceHome       Destroy

   WorkManager                 JNDI Directory



                                                                         12
Features new in GT 4.2




                         13
         Supported Specifications
l   Specification Upgrade
    – Final version of WSA, WSRF and WSN
    – Not backwards compatible with GT 4.0.x
    – Interoperable with Genesis II, UNICORE, USMT, GT C
      WS Core
l   WS Enumeration
    – Allows management of large data set response
    – Operation provider for WS-Enumeration operations
    – Support for persistent or transient enumeration
    – Client API to use enumerated response



                                                           14
      Deployment Enhancements
l   Container level hot deploy
    – Container need not be stopped
l   Remote deploy of services
    – Deploy service
    – Command line clients support
l   Deployment validation tools
    – Descriptor validation
    – JNDI configuration validation



                                      15
              Other Features
l   Environment tools
    – Local environment validation
    – Remote environment information
l   SOAP Attachments
    – DIME, MIME, MTOM formats




                                       16
                 Updated Metrics
l   Usage statistics
l   Periodic updates
l   Usage packet updated
    –   List of services, active and inactive
    –   Thread pool size and number of threads used
    –   JVM version
    –   Number of service requests catered
l   Possible Analysis
    – Container uptime
    – Activated services
    – Non GT services deployed


                                                      17
Java WS Core Performance




                           18
      Performance Improvements
l   HTTP/S Connection Caching
    – Improved performance
    – Connections with same parameters reused
l   Notification improvements
    – Thread pool for sending notifications




                                                19
    Standalone container Performance
l    Roundtrip time for request
     – Request sleep for 10 ms
l    Specifics:
     – Debian Linux Machines
     – 3.5 GB RAM
     – Two 2.2 GHz AMD64 processors
     – JDK 1.6
     – Java WS Core 4.2
l    Server on separate machine
l    Concurrent clients on 4 worker machines


                                               20
GT Java WS Core Round Trip Mean Plot




                                       21
GT Java WS Core Round Trip
        Histogram




                             22
Current Work




               23
    Enhanced Resource Persistence
l   Goals:
    – Reliable persistence
    – Failover recoverability support
    – Improved querying
l   Resource Store API to abstract storage
l   Options:
    – In memory store
    – File system
       > XStream for serialization
    – RDBMS
       > Java Persistence API (JPA)
       > Default use of Derby database



                                             24
            Reliable Messaging
l   Guaranteed and in-order notification
l   Integrate with Apache Sandesha 1.0
    – WS-RM headers
    – FIFO queue
l   Modify WS-N Notify to optionally provide
    reliability
    – Synchronous operation
    – HTTP acknowledgement
l   Secure notification supported


                                               25
    Writing Services Using Java WS Core

l    Define Schema
l    Generate Java stubs
l    Implement business logic
l    Configure Operation providers




    caBIG’s Introduce provides GUI interface

                                               26

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:9/27/2013
language:English
pages:26
xiaocuisanmin xiaocuisanmin
About