Re: associators in sfcb

Marek Szermutzky <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <OF9C0B57FE.173ED729-ONC1257791.0044D6CF-C1257791.0047666A@de.ibm.com>
Hello!

The function you can use in a CMPI provider
to determine if a derived class is a subclass of some other class resides
in the CMPIBrokerEncFT

and is called classPathIsA() .

In your example, you would build the
object paths of your associations XYZ_SystemDevice1
and XYZ_SystemDevice2, and then could
check if they should be returned at all by using classPathIsA() and as
the "type" input argument the class name "CIM_SystemDevice".
The macro for the function is named: CMClassPathIsA .

Alternatively, reconfiguring sfcb without
the configure option "--enable-optimized-enumeration=yes" would
cause sfcb to call your provider two times.

Taken from README in sfcb source code:

--enable-optimized-enumeration=[yes|no]

Enable enumeration call optimization for polymorphic

invocations. This option can result in less
provider invocations

but may break providers expecting to be called
for leaf classes

only (and then multiple times). Default=no

Mit freundlichen Grüßen / Kind regards

Marek Szermutzky

Software Engineer / OpenPegasus Maintainer (PMC) and z/OS PlatformRep.

IBM Systems &Technology Group, Systems Software Development / z/OS
Capacity Management and Support

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland

Schoenaicher Str. 220

71032 Boeblingen

Phone: +49-7031-16-5182

E-Mail: [email protected]

-------------------------------------------------------------------------------------------------------------------------------------------

IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats:
Martin Jetter

Geschäftsführung: Dirk Wittkopp

Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart,
HRB 243294

From:
<[email protected]>

To:
<[email protected]>

Date:
01.09.2010 12:22

Subject:
associators
in sfcb

----------

Hi All,

I am writing a provider in Vmware ESX 3.0
sfcb.I am facing following problem

I have 2 derived classes of CIM_SystemDevice.XYZ_SystemDevice1,XYZ_SystemDevice2.

if a client makes following call

cimcli -n myNameSpace a CIM_ComputerSystem
-ac CIM_SystemDevice -niq -i

In case of pegasus,CIMOM itself will spawn
as many threads as number of derived class and will make call to provider.So
provider will get two calls with associationClass as XYZ_SystemDevice1
and XYZ_SystemDevice2.

But in sfcb provider gets only one call with
associationClass as CIM_SystemDevice.Is there any CMPI API to get all derived
classes of a particular class or association?

Any other way to access repository from provider?

Thanks in advance,

Sijo Kappen

Please do not
print this email unless it is absolutely necessary.

The information contained in this electronic message and
any attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, you should not disseminate, distribute
or copy this e-mail. Please notify the sender immediately and destroy all
copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email.
The recipient should check this email and any attachments for the presence
of viruses. The company accepts no liability for any damage caused by any
virus transmitted by this email.

www.wipro.com
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.