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

[Xen-devel] event susbcription

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] event susbcription
From: "sting sting" <zstingx@xxxxxxxxxxx>
Date: Wed, 08 Jun 2005 16:55:07 +0300
Bcc:
Delivery-date: Wed, 08 Jun 2005 13:54:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] event susbcription, sting sting <=