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

Re: [Xen-API] Constructors and Destructors on classes

To: Hetal Badheka <hetal.badheka@xxxxxxxxxx>
Subject: Re: [Xen-API] Constructors and Destructors on classes
From: Tom Wilkie <tw275@xxxxxxxxx>
Date: Tue, 6 Mar 2007 14:41:46 +0000
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 06 Mar 2007 06:41:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45ED7C8A.9050408@xxxxxxxxxx>
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>
References: <45ED7C8A.9050408@xxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi

Does a constructor on class VM just create an instance of the class in Xen's memory or does it actually provision a new VM and conversely, what does a destructor do, delete the VM class instance from memory or destroy a virtual machine?

Well 'create' creates the representation in xend, and then when you call 'start' it starts that domain. That should all be working. I think, after you have shutdown a domain, the destructor deletes its representation within xend.

The class "host" and "host_cpu" also have create and destroy methods on them and since you can't create and destroy a physical host or a physical cpu, I am guessing that the answer to my question above for VMs is that the create and destroy methods just instantiate and destroy a class instance and do not actually cause the provisioning and decommissioning of a virtual machine.

I don't see host create in the latest api spec, it you look in the repository. And host_cpu create is not implemented. Not sure it should be in there...

Cheers

Tom

Gurus, kindly explain..

Thanks,
Hetal

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