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

[Xen-API] Using binding java

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Using binding java
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=7ODTKj3KMMUbrfRXTLc6p+8S1LHnfwU5TlBsA0V8NWw=; b=jImInlm1NdCXcMG00ygSb5PI8ycrmb6a3TxheLvHGj0VSq+I9UWjTDzG+0rdgy65KGHrdQeBPpSiqypYoYxGiVfjaPlbcsAFbcRiQWAvdQjwH3ka4rq6qvK+pD6dAf7ljIxQiZAA4frTe4Td9A898wtbX2uMj7c1fTnhzC0axCk=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
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
<Prev in Thread] Current Thread [Next in Thread>