a proposal for 2 OAF features



hello!

I've got two proposals concerning the OAF implementation:

1. currently, only one active server per IID can be registered in the
ObjectDirectory. I think that the per_iid hashtable should store a GList
for each IID, containing all registered active servers (ie, if multiple
servers are activated using the OAF_FLAG_IGNORE_EXISTING flag). with
each registration a new server would be prepended to this list and with
each activation of an already existing server, the server at the head of
the list would be activated and moved to the tail. this would serve as a
simple balancing
algorithm.

2. I think that OAF should add an option to _only_ activate and _not_
register the server
(something like a flag OAF_FLAG_EXCLUSIVE) in order to enable an
application to use
the activated server exclusively. this implies IGNORE_EXISTING. as the
registration
is done by the server and not OAF, it would mean passing a command line
argument to
the server exe (let's call it "--oaf-exclusive") or a parameter to the
Factory object.
I don't know what to do with shared libs for this purpose.

I'd like to hear comments on these ideas. If anything of this sounds OK,
I'll be happy to implement it (actually, I've got some code in place
already, as I needed it for a private project of my own...).

regards,
	jaKa

-- 

email: jaka.mocnik@kiss.uni-lj.si
w3:    http://pluton.ijs.si/~jaka




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]