wiki:RpDynamicCreation

Version 5 (modified by harald.kornmayer, 14 years ago) (diff)

--

Dynamic Resource Creation

The Resource Creation Interface is provided by the Resource Host in order to enable the dynamic creation of new Sensei Resources. The Resource Creation interface provide currently one method called "deployResource" with a Resource Description Template and a set of parameters as arguments. The SENSEI specification is technology agnostic, so the Resource Host with an RCI can use various technologies.

Demonstrator

The demonstrator of the RCI is based on OSGi technology, namely the Equinox runtime. The services are realized with the Restlet framework and can be access using the RESTLET patterns. The OSGi runtime plus the Restlet framework represent the Resource Host. A REST interface for the RCI is available. With a POST message to the interface, new Resources can be deployed. In our example we create a new "Averager" Resource dynamically.

Repository

Check out the software from the SVN location https://svn-batch.grid.pub.ro/svn/Sensei-WP5/DynamicResourceCreation

The Resource Host and the RCI

  1. The Software for the Resouce Host is available in the following versions:
    • Linux (gtk.x86)
    • Windows (win32.x86)
    • MacOS (cocoa.ppc)
  2. Change the directory to ResourceHost/?
  3. Unzip the content of your operating system
  4. Change to the directory ResourceHost? + Perhaps change the permission of the executable
  5. run the executable RCIResourceHost
  • A shell window pops up and the service is started.
    • In most cases, one gets an error as the Resource Directory is not running. The Resource directory is required to publish the Resource Description Templates.
  • Check that the RCI service is running with http://localhost:8182/reshost/rci
    • sometimes the RCI is running remotely! Then change localhost to the IP adress