[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

1419.0. "How create fullname instance in the event sink ? " by ANNECY::JACQUEMOUX () Thu Aug 29 1991 07:41



	Hello,



	I've an AM that instance identifier type is FULLNAME.
	I've developped both GETEVENT directive which calls MCC_EVENT_GET
	and EVENT SINK which calls MCC_PUT_EVENT.

	I've two questions please:

	- First, can I use a DECmcc thread to run the event sink program
	  or it's better to start a detach process (maybe from a DECmcc AM
	  directive) ?

	- And, could you give me information about the creation of CI pair
	  in the event sink which knows nothing about the instance fullname
	  used with the GETEVENT directive.

	  The problem is that I don't known how to build the fullname in
	  the mcc_event_put which matches the fullname in the mcc_event_get.

	  Should I convert the opaque fullname to external fullname ?

	  Examples will be appreciate.


	Thanks in advance,


		Thierry.
T.RTitleUserPersonal
Name
DateLines
1419.1detached versus a seperate threadTOOK::CALLANDERJill Callander DTN 226-5316Wed Sep 04 1991 13:5539
The question of where/how to run your event sink depends on your answers
to the following questions:

	o  what will be your primary host system, ultrix or VMS?
		
		The ultrix process model differs from the VMS model, and
		therefore impacts how your implementation runs. In ultrix
		each xM is run as a seperate detached process, and the
		distinction between seperate threads and processes is
		not as apparant to the user as it is in VMS (exit the
		app in VMS and the thread goes away)

	o  do you want to whare share the sink?

		Is the goal to have a single sink to service multiple
		users, or each user wants to set up and control their
		own sink.

Now as to the fullname question, there are mcc_dns routines for converting
strings to fullnames. The only thing is that given a string, if you don't konw
where in the namespace it is, you will create na:.string which might not
match what the user entered value is. But I digress. The real point here is
that you imply that the fullname is NOT the primary identifier for this
entity. In which case you should do the following.

	1) user enters command, fullname is passed as instance identifier
	2) AM translate fullname into primary identifier
	3) AM does mcc_event_get using primary (NOT fullname) identifier

	1a) event sink is started up
	2a) sink gets an event, does a put using primary identifier

The reason primary identifier should be used, is exactly due to the 
problem you stated. als onte that an AM should aways return the primary
identifier. You should not confuse the DNS primary identifier with the
entities primary identifier (the name or address in which the entity
thinks of itself).

jill