[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: xm list dropping domain?
Thanks for the information Mike, I supposed it was getting destroyed, hmm. I'm making the controller part of a grid service and the VM's are distinguished by an assigned distinguished name which maps to a local name (so that ID #s can change). The controller is only dealing in local names now. It looks like one of the domain events is restart: (event xend.domain.exit (gridvm1 3 reboot)) (event xend.domain.restart (gridvm1 3 schedule)) (event xend.domain.destroy (gridvm1 3)) (event xend.domain.died (gridvm1 3)) (event xend.domain.restart (gridvm1 3 begin)) (event xend.domain.create (gridvm1 3)) (event xend.domain.restart (gridvm1 3 success)) (event xend.domain.unpause (gridvm1 3)) ..where "gridvm1" is the local name. So I don't think a domain object is necessary, couldn't I poll 8001 for any changes concerning the local name (as long as nothing at a higher level started a domain with the same name in that window)?. That's pretty cool, I didn't know you could receive the events, I thought you could only 'ask.' That makes me think I should write a polling thread that any class could register callbacks with? My thinking is that the 'right way' is to decouple any higher level functionality. Unless I'm missing a programming trick here.. On Tue, 5 Oct 2004 14:25:58 +0100 Tom Wilkie <tw275@xxxxxxxxx> wrote: > > From python you can use XendClient to call the api directly - either > > synchronously or asynchronously. From Java you can use Jakarta commons > > httpclient, and from C you can use libcurl (see the xfrd source in > > xen). > > > > I wrote a simple interface to xend in java for the high-xeno stuff. > Let me know if you need it, I don't think that repository is public. Thanks, I would definitely like to take a look. I started an http interface, but I do need to think about all of this some more (if I combined or made improvements I'd make that available to anyone also). Thanks to you both for you help! Tim > > Cheers > > Tom > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/xen-devel > -- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |