[one-users] Java OCA code dependency
Carlos Martín Sánchez
cmartins at fdi.ucm.es
Wed Apr 28 07:28:16 PDT 2010
Hello Shashank.
Keep in mind that underneath, the java OCA is an XMLRPC interface to
OpenNebula. That's why you need to retrieve the information from ONE with
the info() method first.
We tried to make the code flow clear by creating some examples[0], you may
find them more helpful than the javadoc.
About the username:password string: Do you mean that you could interact with
OpenNebula with a non-existing user?
[0]
http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/oca/java/share/examples
Best regards,
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/4/28 Shashank Rachamalla <shashank.rachamalla at hexagrid.com>
> Hi
>
> I have noticed the following while using Java OCA with Nebula 1.4.
>
> Client oneClient = new Client("shashank:shashank","
> http://localhost:2633/RPC2");
> VirtualMachine vm = new VirtualMachine(1,oneClient);
> vm.info();
> System.out.println(vm.getName());
>
> Host host = new Host(4,oneClient);
> host.info();
> System.out.println(host.getName());
>
> In the above code, vm.getName() has a dependency on vm.info(). If vm.info()
> is not invoked prior to it then the attributes of VirtualMachine object are
> null. The same dependency can be seen with Host releated invocation. Is this
> dependency required or can it be reported as a bug ?
>
>
> I have also noticed that the code was functional for any username:password
> specified as secret.
>
> --
> 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/20100428/329bd774/attachment.htm>
More information about the Users
mailing list