#2422 enumerateNamespaces() method to WBEMClient

New_Feature
closed-fixed
Dave Blaschke
5
2012-09-14
2012-04-11
venkat katakam
No
0 up votes | 0 down votes | 0%
9 comments

enumerateNamespaces() method to WBEMClient

Discussion

  • Dave Blaschke
    Dave Blaschke
    2012-04-11

    • milestone: --> New_Feature
    • assigned_to: nobody --> blaschke-oss
     
  • Dave Blaschke
    Dave Blaschke
    2012-04-11

    Added enumerateNamespaces API to WBEMClientSBLIM interface, NOT WBEMClient (that would violate JSR48 standard):

    /\*\*
     \* Enumerate the names of the instances of CIM namespaces.
     \* 
     \* @param pNamespace
     \*            The Interop Namespace, if known. If null, the default Interop
     \*            Namespace names defined by DSP1033 are used.
     \* @return A <code>CloseableIterator</code> of <code>CIMObjectPath</code>s.
     \* @throws WBEMException
     \*             If unsuccessful, one of the following status codes must be
     \*             returned. The ORDERED list is:
     \* 
     \*             <pre>
     \*      CIM\_ERR\_FAILED \(some other unspecified error occurred\)
     \* </pre>
     \*/
    public CloseableIterator<CIMObjectPath> enumerateNamespaces\(String pNamespace\) throws WBEMException;
    
     
  • Dave Blaschke
    Dave Blaschke
    2012-04-11

    To use the new API, simply cast WBEMClient to WBEMClientSBLIM, like this:

    WBEMClient client = WBEMClientFactory.getClient(...);
    client.initialize(...);
    CloseableIterator<CIMObjectPath> iterator = ((WBEMClientSBLIM)client).
    enumerateNamespaces(null);

     
  • Dave Blaschke
    Dave Blaschke
    2012-04-11

    • status: open --> open-fixed
     
  • Dave Blaschke
    Dave Blaschke
    2012-04-11

    Patch sent for community review. During a 2 week period any
    exploiter may comment on the patch, request changes or turn it
    down completely (with good reason). For the time being the patch is part of the "Experimental" branch in CVS.

     
  • Dave Blaschke
    Dave Blaschke
    2012-04-29

    Patch against HEAD

     
    Attachments
  • Dave Blaschke
    Dave Blaschke
    2012-04-29

    The community review has completed and we received no substantial criticism. Therefore the patch has been approved and merged into the "HEAD" branch. The next release will pick it up.

     
  • Dave Blaschke
    Dave Blaschke
    2012-04-29

    • status: open-fixed --> pending-fixed
     
  • Dave Blaschke
    Dave Blaschke
    2012-09-14

    The patch was picked up by release 2.2.0 and will therefore be closed.

     
  • Dave Blaschke
    Dave Blaschke
    2012-09-14

    • status: pending-fixed --> closed-fixed