[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] event susbcription
Hello, I tried to learn a little on subscription of events in xen. I saw that in SrvDaemon.py there is a subsription to '*' it his here: class EventProtocol(protocol.Protocol): def __init__(self, daemon): ....... self.subscribe(['*']) ........ and in the same class: def subscribe(self, events): self.unsubscribe() for event in events: eserver.subscribe(event, self.queue_event) ............However , when I added in EventServer.py logging into a file of the "event" parameter, I saw the correspoding event as 'xend.*' and not as '*' (if I am not wrong. ) I see this by adding 4 lines in EventServer.py: def subscribe(self, event, handler): ....... eventlog = open("/work/logs/event.txt","a") eventlog.write(str(event)) eventlog.write(' ') eventlog.close() ........ Any idea from why is it 'xend.*' and not '*''?Or maybe I am wrong and 'xend.*' comes from a different place? In such case - from where? Regards, Sting _________________________________________________________________Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |