WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-API] XenAPI Java bindings

To: Tom Wilkie <tom.wilkie@xxxxxxxxx>
Subject: Re: [Xen-API] XenAPI Java bindings
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Fri, 18 May 2007 11:59:59 -0400
Cc: xen-api-bounces@xxxxxxxxxxxxxxxxxxx, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 18 May 2007 08:58:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8BA12426-D2D0-49AA-8521-408B331EC1AD@xxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx

Hello Tom,

  wow, lots of work! This is great stuff.

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.

- 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.

- 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.


Stefan

 

xen-api-bounces@xxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>