Re:Query regarding behavior of handle.deliver()
Ajay N Rao <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <OF12D0117B.CB1BA594-ON652578F5.0030EFCF-652578F5.003115AC@in.ibm.com> |
Hi swanand,
Pls refer sample providers given in the following path in the pegasus
directory:
src/Providers/sample/
src/Providers/sample/InstanceProvider
some of the providers use the same approach as mentioned by you in the
note.
for (each instance)
{
.....
handler.deliver(instance);
}
handler.complete();
Regards,
Ajay
From: swanand Dunakhe <[email protected]>
To: "[email protected]" <[email protected]>
Date: 08/23/2011 01:31 PM
Subject: Query regarding behavior of handle.deliver()
Hi,
I have a query regarding behavior of handle.deliver().
Description says "The deliver function is used by providers to deliver
results to the CIM Server"
I need to return an enumeration to a CIM client, which will process the
enumeration iteratively.
The problem is, the Client can not gain a control to process the the
enumeration until all the objects in enumeration are accumulated at CIM
server.
The creation of objects may take a longer time, so we don't want all the
objects to be accumulated in an enumeration.
Once the object is collected at server side, it should be used by client
instead of waiting for all the enumeration,
Documentation says that the objects are delivered to server asynchronously,
but the client is waiting for all the objects to be filled up in
enumeration.
I need an iterative approach for the same. is there anything that can be
done to resolve the issue?
Note:handler.complete() gives the control to client and gets out of the
enumerateInstances() method, so I am using handler.complete() at the end.
e.g
//handler.processing();
//some code;
for (some conditions)
{
//collect the cim instance and deliver;
//handler.deliver() //I expect, the instance should be consumed by
client at this same point.
}
handler.complete(); //But client gets control after this statement.
Please let me know your inputs for the same.
Thanks,
Swa.