[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

2663.0. "DNS or the MIR, that is the question !" by BALZAC::MARKOWSKI () Tue Mar 31 1992 10:44

	Hello,

	I have an entity that has two identifiers :
		. the primary name that is given at the registration,
		. the alternate name that is the concatenation of four
		  information, requested at the registration, that
		  designate uniquely an element; this alternate name is
		  stored in DNS to be able to do the backtranslation.

	Now I would like to have the same mecanism of backtranslation
        using only the MIR. Looking at the 'mcc_mir_...' routines I have
	found :
		. the 'mcc_mir_create_instance' routine to create a new 
		  entity instance in the MIR,
		. the 'mcc_mir_add_identifier' to add a new identifier to
		  an existing entity instance,
	but I haven't found the routine that returns the entity instance
	knowing an identifier of this entity instance.


	Any suggestion would be appreciated.

	Best regards,

	sylviane.
T.RTitleUserPersonal
Name
DateLines
2663.1MCC_MIR_GET_IDENTIFIERS() returns identifiersTRM::KWAKTue Mar 31 1992 11:1213
    RE: .0
    
    mcc_mir_get_identifiers() - can return all identifiers for an entity
    				instance.
    
    mcc_mir_translate_ident() - can return a specified type of identifier
    				(e.g. given an alternate identifier,
    				you can pass output descriptor specifying
    				fullname data type.) 
    
    I hope this helps.
    
    William
2663.2BALZAC::MARKOWSKITue Mar 31 1992 11:2921
	Hello William,


	I'm afraid your solution doesn't suit me.

	What I need in fact is something like that :

		. routine mcc_mir_get_instance()

		input parameter :	an identifier of the entity instance
					I'm looking for
		output parameter :	the entity instance

	(a kind of mechanism of backtranslation).

	Thank's for help,

	regards,

	sylviane.
2663.3What do you mean by "instance"TOOK::GUERTINMenagerie Control CenterWed Apr 01 1992 08:4431
    Typically when people talk about entities in the MCC sense they talk
    about Class / Instance pairs.  If you have a global entity, it has a
    unique class.  You know your own class, you do not need a routine call
    to get it.  Also if you have a fullname identifier, it is also unique.
    However, the source code may not know it's value at any given time. 
    The instance is made up of one or more identifiers, the primary
    identifier must always be available, and possibly one or alternate
    identifiers.  The term "instance" is more general than identifier, and
    implies that the value is of one identifier datatype and you don't care
    which one. (The point is: IF YOU HAVE AN IDENTIFIER, THEN YOU HAVE AN
    INSTANCE.)   Sorry, if I'm not explaining this well.
    
    In your case, the instance is one of two possible identifiers.  A
    fullname identifier, and a "concatenated" identifier.  If you want to
    go from "concatenated" (i.e., alternate) identifier to primary
    identifier, you call translate_ident.  If you want to know what all the
    identifiers are, you call get_identifiers.  If you already have an
    identifier (and hence an instance), then just call mcc_aes_create. 
    Pass in your unique class code and the instance(/identifier) that you
    have, and you have an entity spec.  My understanding of the
    backtranslation tree is allow translation of a non-fullname identifier
    to a fullname identifier (and possibly vise-versa) through the use
    of dns softlinks.  The MIR routines do not use the DNS backtranslation
    trees.  They translate from one identifier to another by matching up
    UIDs.
    
    There should be nothing missing.  The MIR routines are just primitive
    routines.  But, there may be something in the toolkit which does more
    for you.
    
    -Matt.