From: Tom Wilkie Subject: Re: [Xen-API] XenAPI Java bindings Date: Fri, 18 May 2007 17:48:24 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============0388274136==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-api-bounces@lists.xensource.com, Tom Wilkie , xen-devel , Xen-API List-Id: xen-devel@lists.xenproject.org --===============0388274136== Content-Type: multipart/alternative; boundary=Apple-Mail-1--663758536 --Apple-Mail-1--663758536 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 18 May 2007, at 16:59, Stefan Berger wrote: > wow, lots of work! This is great stuff. Thanks ;-) > I have some comments related to the VM class and record: > > - I tried to build a VM using a Record and litterally all > parameters need to be provided so that the map does not contain any > 'null's.Could the keys be checked for whether they are null before > they are put into the HashMap for a VM. It's not absolutely > necessary to provide all parameters such as for example PCI_bus to > build a VM and providing a uuid seems not to be useful. Fair call, it should really just require all the rw and ro_inst variables to be specified. > - In the VM record the parameter 'action_after_suspend' seems to be > missing which prevents one to build a VM -- it seems to be a > mandatory parameter. Yeah, I think I need to toString() the enum, with some case conversion. > - the types for the actions_after_* parameters of a VM record need > to be strings such as "destroy". It seems they are of type > class.com.xensource.xenapi.Types$OnNormalExit which does not let > one build a VM with it. Yeah same problem as above I think. Will get onto these on monday! Cheers Tom > Stefan > > > > xen-api-bounces@lists.xensource.com wrote on 05/17/2007 07:01:36 AM: > > > Hello all > > > > I've made some nice Java bindings for the XenAPI. You can download > > them at http://www.cl.cam.ac.uk/~tw275/java-binding-source.tag.gz. > > > > Docs are located at http://www.cl.cam.ac.uk/~tw275/xenapi-docs/ or > > http://www.cl.cam.ac.uk/~tw275/java-binding-docs.tar.gz. > > > > A quick example is located in the tarball in Test.java. > > > > Please let me know if you have any problems with these bindings. > > They are a bit fragile at the moment, a bad server response will > > cause a ClassCastException. > > > > Cheers > > > > Tom > > > > _______________________________________________ > > xen-api mailing list > > xen-api@lists.xensource.com > > http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api --Apple-Mail-1--663758536 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On 18 May 2007, at = 16:59, Stefan Berger wrote:

=A0 wow, lots of work! This is great = stuff.=A0

Thanks ;-)

I have some comments = related to the VM class and record:

- I tried to build a VM using a Record and = litterally all parameters need to be provided so that the map does not = contain any 'null's.Could the keys be checked for whether they are null = before they are put into the HashMap for a VM. It's not absolutely = necessary to provide all parameters such as for example PCI_bus to build = a VM and providing a uuid seems not to be useful. =

Fair call, it should really = just require all the rw and ro_inst variables to be = specified.

- In the VM record the parameter = 'action_after_suspend' seems to be missing which prevents one to build a = VM -- it seems to be a mandatory parameter. =

Yeah, I think I need to = toString() the enum, with some case conversion.

- the types for the = actions_after_* parameters of a VM record need to be strings such as = "destroy". It seems they are of type = class.com.xensource.xenapi.Types$OnNormalExit which does not let one = build a VM with it.=A0

Yeah same problem as above = I think.

Will = get onto these on monday!

Cheers

Tom

Stefan
=
=A0
=
xen-api-bounces@lists.= xensource.com wrote on 05/17/2007 07:01:36 AM:

> Hello = all
>
> I've made some nice Java bindings for the XenAPI. = =A0You can download =A0
> them at http://= www.cl.cam.ac.uk/~tw275/java-binding-source.tag.gz.
>
= > Docs are located at http://www.cl.cam.ac.= uk/~tw275/xenapi-docs/ or =A0
> http://ww= w.cl.cam.ac.uk/~tw275/java-binding-docs.tar.gz.
>
> A = quick example is located in the tarball in Test.java.
>
> = Please let me know if you have any problems with these bindings. =A0 =
> They are a bit fragile at the moment, a bad server response = will =A0
> cause a ClassCastException.
>
> = Cheers
>
> Tom
>
> = _______________________________________________
> xen-api mailing = list
> xen-api@lists.xensource.com
>
http:= //lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
=

= --Apple-Mail-1--663758536-- --===============0388274136== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0388274136==--