Re: Can I regist two instance providers for a same CIM class?

Paul Robert Marino <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
The simple answer is if you want two different c or java based providers 
to provide information to one or multiple instances of the same class 
create a proxy provider which gathers information from both and 
consolidates it into specific instances prior to handing the information 
off to open Pegasus or any other WBEM server API.


On 4/25/2011 11:40 PM, Kirk Augustin wrote:
> Hi Huruifeng,
>
> It does not matter what kind of provider you might want to try having 
> 2 of, it won't work.
> If it could, it would be ambiguous.
> When you register the 2nd provider, for the same purpose, it will over 
> write the first.
> I am not familiar with Small Footprint CIM Broker (*SFCB*), but it 
> would make no sense for it allow 2 providers for the same class and 
> purpose.
> I have not actually tried to have a separate provider for say 
> instances and methods, because there would be no reason to.
> A method provider would also need to know about instances as well, so 
> it is hard to see how it would be useful to separate them.
> Nothing is gained by having more providers than the minimal necessary.
> Often it is easiest to use one provider for many, many classes.
> The provider is told what class it is being queried on, so there is no 
> problem having fewer providers.
> Think of each provider as an interface to a database.
> You would not want a provider for each table in a database, but just 
> one for the entire database.
> You don't need another provider until you have a different database to 
> also be able to connect to.
> Kirk Augustin
> 11821 NW McNamee Rd
> Portland, OR 97231
>
>
> ------------------------------------------------------------------------
> *From:* huruifeng <[email protected]>
> *To:* "Sampige, Sahana Prabhakar (R&D Bangalore)" <[email protected]>; 
> "[email protected]" <[email protected]>
> *Sent:* Mon, April 25, 2011 8:03:27 PM
> *Subject:* Re: RE: Can I regist two instance providers for a same CIM 
> class?
>
> Hi Sahana:
> Here "two providers" you mean two instance providers?
> Now I hava two indication providers for CIM_AlertIndication,can I 
> regist both of them like sfcb does?
> And what about a instance provider and a method provider both for 
> CIM_ComputerSystem?
> Regards
> 2011-04-26
> ------------------------------------------------------------------------
> huruifeng
> ------------------------------------------------------------------------
> *发件人:* Sampige, Sahana Prabhakar (R&D Bangalore)
> *发送时间:* 2011-04-25  17:53:17
> *收件人:* huruifeng; [email protected]
> *抄送:*
> *主题:* RE: Can I regist two instance providers for a same CIM class?
>
> Hi Huruifeng,
>
> You cannot register two providers for the same CIM class. But you 
> could register one provider each for the CIM class hierarchy. When you 
> enumerate the base class for example CIM_ManagedElement, instances for 
> CIM_ManagedElement and its sub class like CIM_LogicalElement, 
> CIM_Processor etc, will be returned.
>
> Rgds,
>
> Sahana
>
> *From:*huruifeng [mailto:[email protected]]
> *Sent:* Monday, April 25, 2011 3:05 PM
> *To:* [email protected]
> *Subject:* Can I regist two instance providers for a same CIM class?
>
> Hi:
>
> Can I regist two instance providers for a same CIM class?
>
> If it is possible, which provider will be called when a getInstance 
> request is recieved?
>
> Regards
>
> 2011-04-25
>
> ------------------------------------------------------------------------
>
> huruifeng
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.