Skip to contentSkip to conversation

XenAPI Java bindings

DISCUSSION Tom Wilkie 4 participants 5 messages May 17, 2007 – May 18, 2007

lore
Share & tools
lore

Tom Wilkie

author
#0 lore raw

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

#2 lore raw

It seems here (not tag, tar is correct)
http://www.cl.cam.ac.uk/~tw275/java-binding-source.tar.gz

Few years ago, I am using java but now ...

Thanks
Atsushi SAKAI

Quoted 19 lines · Patrick O'Rourke
Quoted 2 lines · Tom Wilkie

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.

Is this the correct link (I'm getting an error that the URL isn't found)?

Thanks,

Pat

Signature · 7 lines
Patrick O'Rourke
[email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
#3 lore raw
In reply to Tom Wilkie

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

[email protected] wrote on 05/17/2007 07:01:36 AM:

Quoted 14 lines

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.

Quoted 8 lines

Cheers

Tom

_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#4 lore raw
Quoted 1 line · Stefan Berger

wow, lots of work! This is great stuff.

Thanks ;-)

Quoted 4 lines

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.

Quoted 2 lines

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

Quoted 2 lines

- 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

Quoted 4 lines

Stefan

Quoted 24 lines

[email protected] wrote on 05/17/2007 07:01:36 AM:

Quoted 22 lines

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
[email protected]
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel