Query regarding behavior of handle.deliver()

swanand Dunakhe <[email protected]>
Newsgroups gmane.network.open-pegasus.general
Message-ID <[email protected]>
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.
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.