[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Using binding java


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: "Victoria Ghores" <victoria.ghores@xxxxxxxxx>
  • Date: Tue, 3 Jun 2008 11:08:18 +0200
  • Delivery-date: Tue, 03 Jun 2008 02:16:55 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=omJqC9tEepKgPBr3ijrSei1oePNtIBCBE9f5LEQfaMHSrt+umbpBkJw75SQXfNH9mroZ4MyTC/iUpHZpYuF00BynjzT9O8lsnzmYUIfs0NYgPIwIumC3F7KNXNsc6vRPMcHx6MejJOG034O63z7gwN2oorTkcbCaoaMxbKI//5I=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

Hi,

I'm developing a Xen Monitoring Portlet in Java.
I'm using the binding Java for Xen api,
and I have few questions...

1 - How can I create a new VM?

2 - How can I do a hard-reboot on a VM ?
I tryed  : myVM.hardReboot();
I got this error :
[EUNSUPPORTED, Method Unsupported]
    at com.xensource.xenapi.VM.hardReboot(VM.java:2337)

3 - How can I get VDI informations?
I tryed  : myVBD.getVDI().getVirtualSize();
I got this error :
[HANDLE_INVALID, VDI, ]
    at com.xensource.xenapi.VDI.getVirtualSize(VDI.java:440)

I tryed  : myVBD.getVDI().getPhysicalUtilisation();
I got this error :
[HANDLE_INVALID, VDI, ]
    at com.xensource.xenapi.VDI.getPhysicalUtilisation(VDI.java:463)

4 - How can I get a DomU IP adresse?

If you have any idea or document to help me in this work...

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.