Subject Re: [Firebird-Architect] Re: Engine information (nr. of attachments, databases, db-name-info) for vulcan
Author Dimitry Sibiryakov
On 6 May 2006 at 21:59, Roman Rokytskyy wrote:

>> We could have multiple engines, so we need to walk through all known
>> providers and subsystems. For every subsystem from the provider the
>> fb_engine_info() function is called. As far as i understand the
>> Dispatcher it the place to handle this.
>> Ideas, suggestions, comments?
>I think we have two problems here.

I think there is third problem here: where providers can get
requested information from?
I mean: Dispatcher has loaded a provider and ask it "how many users
are connected to you"? What should the provide do?
a) Should it keep list of connections in some kind of internal
provider-global cache? No! Too ugly.
b) Should it onestly answer "I don't know"? No. It is useless.
c) ???

Providers don't have enough information for answerring
fb_engine_info() calls. Only server has. But even server can be wrong
(consider Classic mode for example).
I'm afraid there is no good way to support this call and keep fine
engine granularity/layering.

SY, Dimitry Sibiryakov.