How to talk to a SmartFrog component from the outside?
"Xavier Grehant" <[email protected]> Thu, 8 Jun 2006 15:06:38 +0200
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, How does an external java object tell a smartfrog component instance to invoque one of its (the smartfrog component's) methods? In my question the Java object would not be a sf component and would live in a different jvm than the smartfrog component. The smartfrog component would be an instance of a Prim java implementation, constructed by the smartfrog engine upon a smartfrog description, and already started. For instance we have a smartfrog component representing a Xen virtual machine. It would configure the image in sfDeploy, create it in sfStart and shut it down in sfTerminateWith using an interface to Xen commands. It would be clean if an external java object or a script could also tell this smartfrog component instance to pause the virtual machine, unpause it, save its state, etc., instead of having the external java object or script talk directly to the Xen virtual machine interface. Do we have to use raw RMI for this or can we re-use a mechanism already in SmartFrog? On the command line it would look like this: SFSystem could(?) be run given an Action Descriptor where ACTION is a custom reference to a component-specific method, sfPause()... java -D... org.smartfrog.SFSystem VmEx1:PAUSE:::localhost: where VmEx1 is the name of a deployed and running smartfrog component representing a Xen virtual machine and whose java implementation defines a sfPause method in addition to sfDeploy, sfStart and sfTerminateWith, etc. or java -D... org.smartfrog.SFSystemAppEx1:PAUSE:ch/cern/openlab/smartfrog/xen/xenApp.sf:"VM1":localhost: where VM1 is the sf path to the running sf component representing the Xen virtual machine we want to pause, from the deployed component description defined in ch/cern/openlab/smartfrog/xen/xenApp.sf or java -D... org.smartfrog.SFSystem "AppEx1:VM1":PAUSE:::localhost: Thanks in advance for your help, Xavier _______________________________________________ Smartfrog-developer mailing list Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/smartfrog-developer