Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient
In directory vz-cvs-3.sog:/tmp/cvs-serv24310/src/org/sblim/cimclient
Modified Files:
WBEMClientSBLIM.java
Log Message:
3516848 - enumerateNamespaces() method to WBEMClient
Index: WBEMClientSBLIM.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/WBEMClientSBLIM.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- WBEMClientSBLIM.java 15 Mar 2010 12:08:22 -0000 1.8
+++ WBEMClientSBLIM.java 29 Apr 2012 13:47:58 -0000 1.9
@@ -1,7 +1,7 @@
/**
* WBEMClientSBLIM.java
*
- * (C) Copyright IBM Corp. 2006, 2010
+ * (C) Copyright IBM Corp. 2006, 2012
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
@@ -20,6 +20,7 @@
* 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
* 2763216 2009-04-14 blaschke-oss Code cleanup: visible spelling/grammar errors
* 2942520 2010-03-08 blaschke-oss IPv6 link local address with scope_id including a dot not supported
+ * 3516848 2012-04-11 blaschke-oss enumerateNamespaces() method to WBEMClient
*/
package org.sblim.cimclient;
@@ -28,8 +29,10 @@
import java.util.Locale;
import java.util.Properties;
+import javax.cim.CIMObjectPath;
import javax.net.SocketFactory;
import javax.security.auth.Subject;
+import javax.wbem.CloseableIterator;
import javax.wbem.WBEMException;
import javax.wbem.client.WBEMClient;
@@ -199,4 +202,22 @@
* Some protocols might not communicate via TCP sockets
*/
public void setCustomSocketFactory(SocketFactory pFactory) throws UnsupportedOperationException;
+
+ /**
+ * 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;
}
|