[one-users] Java OCA query
Carlos Martín Sánchez
cmartins at fdi.ucm.es
Fri May 14 03:20:16 PDT 2010
Hi Shashank.
As you pointed out in a previous mail, once you have the VM with its info
loaded you can find out the hostname and host ID using xpath expressions:
vm.xpath("/VM/HISTORY/HOSTNAME")
vm.xpath("/VM/HISTORY/HID")
Then you can build a host object from that, just remember that you need lo
load its info.
Regards,
Carlos.
Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org
2010/5/14 Shashank Rachamalla <shashank.rachamalla at hexagrid.com>
> Hi
>
> I was randomly testing the Java OCA 1.6 API and came across a requirement
> where I need to find the Host on which a VM is currently running. I couldn't
> find any straightforward way to do this. Can somebody please point out the
> right way to get this task done. ( The assumption here is that I have the VM
> ID )
>
> --
> Regards,
> Shashank Rachamalla
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100514/9fb14dba/attachment-0003.htm>
More information about the Users
mailing list