
Good morning, Testing the new java version (0.4.1) I've noticed that there's no .start() method to start a defined or shuted down domain. Are you working on it or is it a minor feature not to be considered? Thanks in advance, Marc Gonzalez Mateo marcg@ac.upc.edu Dept. Arquitectura de Computadors Universitat Politècnica de Catalunya

2010/2/2 Marc Gonzalez Mateo <marcg@ac.upc.edu>:
Good morning,
Testing the new java version (0.4.1) I've noticed that there's no .start() method to start a defined or shuted down domain.
Are you working on it or is it a minor feature not to be considered?
Thanks in advance,
Why do you think there should be a method called start? The Java bindings bind the C API, not the virsh commands. The C API function to start a domain is called virDomainCreate. The Java bindings bind this function to the create method of the Domain class. Matthias

On 02/02/2010 05:44 AM, Matthias Bolte wrote:
2010/2/2 Marc Gonzalez Mateo<marcg@ac.upc.edu>:
Good morning,
Testing the new java version (0.4.1) I've noticed that there's no .start() method to start a defined or shuted down domain.
Are you working on it or is it a minor feature not to be considered?
Thanks in advance,
Why do you think there should be a method called start?
The Java bindings bind the C API, not the virsh commands. The C API function to start a domain is called virDomainCreate. The Java bindings bind this function to the create method of the Domain class.
Matthias
As Matthias has said, these are tracking the C API. Having said that, where in the doco would you have liked to have seen this? I will agree that create is not an obvious word to look for if all you have seen is the virsh api. -- bk

I've got confused with the naming yes, as I supposed create was doing the same as it does in virsh api, my mistake. Maybe it would be a good idea to rename that method and others to the virsh naming. thanks a lot guys, 2010/2/2, Bryan Kearney <bkearney@redhat.com>:
On 02/02/2010 05:44 AM, Matthias Bolte wrote:
2010/2/2 Marc Gonzalez Mateo<marcg@ac.upc.edu>:
Good morning,
Testing the new java version (0.4.1) I've noticed that there's no .start() method to start a defined or shuted down domain.
Are you working on it or is it a minor feature not to be considered?
Thanks in advance,
Why do you think there should be a method called start?
The Java bindings bind the C API, not the virsh commands. The C API function to start a domain is called virDomainCreate. The Java bindings bind this function to the create method of the Domain class.
Matthias
As Matthias has said, these are tracking the C API. Having said that, where in the doco would you have liked to have seen this? I will agree that create is not an obvious word to look for if all you have seen is the virsh api.
-- bk
participants (3)
-
Bryan Kearney
-
Marc Gonzalez Mateo
-
Matthias Bolte