[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

2534.0. "GETEVENT , Event Manager etc" by CCIIS1::ROGGEBAND (_ �hili��e _) Wed Mar 11 1992 09:33

    Hi,
    
    I've noticed that when I issues a GETEVENT <Class> * directive, there
    is no global entity wildcard resolution done by the PM. Does this mean
    that the AM has to handle it ? Or does the Event manager support
    wildcards ?
    
    Subsidiary question : The mcc_event_put routine uses mcc_aes_match to
    find any pending threads waiting for events. If one aes has a shorter
    spec than the other The mcc_aes_match routine returns a "Incomplete
    specification" status, but set the match to TRUE.
    
    The question is : does the mcc_event_put routine consider that 
    
    GLOBAL x CHILD Y matches GLOBAL x ? 
    
    mcc_aes_match should return TRUE .... Or is the return status
    considered to be more important ?
    
    Regards,
    
    Philippe.
    
    
T.RTitleUserPersonal
Name
DateLines
2534.1My opinion, shout if I am wrong...TAEC::LAVILLATThu Mar 12 1992 06:0334
Hello Philippe,

My 2 � :

>    
>    I've noticed that when I issues a GETEVENT <Class> * directive, there
>    is no global entity wildcard resolution done by the PM. Does this mean
>    that the AM has to handle it ? Or does the Event manager support
>    wildcards ?
>    
	Yes the Event Manager supports global class wildcards.


>    Subsidiary question : The mcc_event_put routine uses mcc_aes_match to
>    find any pending threads waiting for events. If one aes has a shorter
>    spec than the other The mcc_aes_match routine returns a "Incomplete
>    specification" status, but set the match to TRUE.
>    
>    The question is : does the mcc_event_put routine consider that 
>    
>    GLOBAL x CHILD Y matches GLOBAL x ? 
>    
	By experience NO (and it is what it is supposed to do).


>    mcc_aes_match should return TRUE .... Or is the return status
>    considered to be more important ?
>    
	So, in this case YES.


Regards.

Pierre.
2534.2In this case, opinion == factTOOK::T_HUPPERThe rest, as they say, is history.Thu Mar 12 1992 13:555
    RE .1:
    
    All correct.
    
    Ted
2534.3CCIIS1::ROGGEBAND_ �hili��e _Fri Mar 13 1992 03:5626
    Thanks Pierre,
    
    So I guess I have the following options :
    
    1) Issue GETEVENT directives on all child entity classes (Will the
    Iconic Map Notification Services do this, or do I have to set up alarm
    rules ?) and support it for all child entities ;
    
    Or 
    
    2) 
    
    - Support GETEVENT only on thje global entity, 
    
    - In my event sink, associate all events with the parent entity and
    pass the child entity ID in the data 
    
    - When returning from GETEVENT, encode an out_entity which includes
    the child entity . If I remember correctly from a discussion I had
    with Jill Callander earlier in this notesfile, the number of CI pairs
    in out_entity may be different from In_entity as long as out_entity
    is the one to which out_p applies.
    
    Is this correct or am I bending the rules ?
    
    �hR.
2534.4solution 1 should work.TAEC::LAVILLATMon Mar 16 1992 05:4343
Re .3:

>    
>    So I guess I have the following options :
>    
>    1) Issue GETEVENT directives on all child entity classes (Will the
>    Iconic Map Notification Services do this, or do I have to set up alarm
>    rules ?) and support it for all child entities ;
>    

	It will, if you tell him to do so...

     I mean, if you say NOTIFY domain foo events = (sink event)
     the NOTIF FM will issue a GETEVENT class * [subclass * ]... sink event
     for all the class/subclass that support it found in domain foo.

     I think that you do not even have to specify the event name(s) if they
     (the events) belong to the NOTIFICATION partition.

>    Or 
>    
>    2) 
>    
>    - Support GETEVENT only on thje global entity, 
>    
>    - In my event sink, associate all events with the parent entity and
>    pass the child entity ID in the data 
>    
>    - When returning from GETEVENT, encode an out_entity which includes
>    the child entity . If I remember correctly from a discussion I had
>    with Jill Callander earlier in this notesfile, the number of CI pairs
>    in out_entity may be different from In_entity as long as out_entity
>    is the one to which out_p applies.
>    
>    Is this correct or am I bending the rules ?
>    

	Beurk. I prefer solution #1

   Regards.

   Pierre.

2534.5TOOK::STRUTTManagement - the one word oxymoronTue Mar 17 1992 16:1928
    It has been suggested, a while ago, but no detailed ECO or
    implementation has followed, that there should be an addition
    allowed to the In_Entity specification to permit a sort of ellipsis
    in the entity.
    
    This would permit something of the form (across the call interface, not
    necessarily at the user interface, as the U/I support has not been
    designed yet):
    		verb:	GetEvent
    		entity:	Node FOO ...
    		partition: whatever
    What this would do is request any event in the nominated event
    partition for either the Node FOO or for ANY (not every!) child entity
    however far down the entity hierarchy. Clearly in this case, Out_Entity
    is needed to qualify the event returned.
    
    Also, this same scheme could apply to other directives too, with what I
    hope is obvious results.
    
    Support for this variation of wildcard would need to be put into the
    AMs (at least). It is consistent with one of the forms of wildcard
    (aka scoping) defined in CMIS, notably 'whole subtree', so it (or
    something like it) should be implemented some day.
    
    Please don't ask if it's going to be implemented in v1.2 - it's not -
    it's just an idea right now.
    
    Colin