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

Kirk Augustin <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
You only  need ONE proxy provider, for all the third-party providers, no matter 
how many of them you have.
In fact, if you can't easily change the third party providers to work on 
subclasses, you could also install them to different namespaces, and then 
created your single proxy provider in the correct namespace, that just collects 
them all together.

 Kirk & Trish Augustin
11821 NW McNamee Rd
Portland, OR 97231




________________________________
From: huruifeng <[email protected]>
To: Paul Robert Marino <[email protected]>; Kirk Augustin 
<[email protected]>
Cc: "Sampige, Sahana Prabhakar (R&DBangalore)" <[email protected]>; 
"[email protected]" <[email protected]>
Sent: Mon, April 25, 2011 11:41:30 PM
Subject: Re: Re: Can I regist two instance providers for a same CIM class?

  
Hi Paul:
Thank you for your  idea.It is a way to resolve my  problem,but when I have a 
lot of third-party providers,writting proxy providers  will be a big job.
 
Regards
2011-04-26 
________________________________
  
huruifeng 
________________________________
 
发件人: Paul Robert Marino 
发送时间: 2011-04-26  14:15:17 
收件人: Kirk Augustin 
抄送: huruifeng; Sampige, Sahana  Prabhakar (R&DBangalore); 
[email protected] 

主题: Re: Can I regist two  instance providers for a same CIM class?  
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.