Skip to main content

Home/ GSCD_TE/ Group items tagged gridcli

Rss Feed Group items tagged

florian bernard

Client Programming Tutorial - GRIA - 0 views

  • Running a Groovy script   This is the easiest way to access the Java API. To try it out, create a script named test.groovy containing: println "Starting Groovy script!" def jobService = serviceFactory.createServiceProxy("https://host:8443/gria-basic-app-services/services/JobService?wsdl") println "Getting ID..." def id = jobService.getServiceProviderID() println "Job service identity: " + id Replace host with the address of your GRIA job service. The script is run by passing it as an argument to the normal gridcli command. For example: $ gridcli test.groovy Starting Groovy script! Getting ID... Job service identity: <subject> <subject> will appear at the identity of your job service. The configured keystore and active plugins are the same as when running the GRIA client normally.  
florian bernard

Service Developers' Toolkit Manual - GRIA - 0 views

  • The standard GRIA client does not know about the sample service or the resources it creates
    • florian bernard
       
      TE8: lors de l'ajout d'un nouveau service il faut aussi ajouter un plugin pour qu'il fonctionne correctement avec le gridcli
  • The Java interfaces which define the interaction between the service and the client go in a single jar which is used by each of them.
florian bernard

Re: [gria] GRIA 5.3 released - 0 views

  • The bulk of the changes in 5.3 are to the client API. One exciting new > feature is built-in support for Groovy, a scripting language with a > Java-like syntax. For example, the following script will upload the > "source.jpg" file, process it with the "paint" application on > griademo1 > and then download the result:
  • > def GRIADEMO1_JOB_SERVICE_WSDL = > "https://griademo1.it-innovation.soton.ac.uk/gria-basic-app-services/services/JobService?wsdl > > " > def JOB_TYPE = "http://it-innovation.soton.ac.uk/grid/imagemagick/paint > " > def jobService = > serviceFactory.createServiceProxy(GRIADEMO1_JOB_SERVICE_WSDL) > def swirlJob = jobService.createJob(JOB_TYPE, "My swirl job") > swirlJob.input("inputImage").saveFromFile(new File("source.jpg")) > swirlJob.startJob(null) > while (swirlJob.stillActive()) { > println "Waiting..." > Thread.sleep(1000) > } > swirlJob.output("outputImage").read(new File("result.jpg")) > swirlJob.destroy() > > To try it, save the script as "paint.groovy" and then run the client > like this (you'll need a "source.jpg" file too, of course): > > $ gridcli ./paint.groovy > > The above script also demonstrates the new API. "serviceFactory" takes > the URL of a service's WSDL and creates a proxy for it. Notice that, > unlike the 5.2 API, 5.3 does not require you to store the proxy in a > repository.
florian bernard

Resources Views and Filters - GRIA - 0 views

  • Management View The management view displays resources under the resource which they are managed by. This relationship is a parent-child relationship and this can be seen in the resources endpoint reference, right click a resource and select View EPR there is a managingresource element which tells us the endpoint of the managing resource. If a resource is unmanaged then it appears under the Management Resources node otherwise it appears under its managing resource.
florian bernard

Client User Guide - GRIA - 0 views

  • Management View The management view displays resources under the resource which they are managed by. This relationship is a parent-child relationship and this can be seen in the resources endpoint reference, right click a resource and select View EPR there is a managingresource element which tells us the endpoint of the managing resource. If a resource is unmanaged then it appears under the Management Resources node otherwise it appears under its managing resource.
1 - 5 of 5
Showing 20 items per page