Class CIMEnumerationImpl
java.lang.Object
org.sblim.wbem.client.CIMEnumerationImpl
- All Implemented Interfaces:
Enumeration, CIMEnumeration
Provides the mechanisms to stream the response of CIMObjects, returned by the
CIMOM.
-
Constructor Summary
ConstructorsConstructorDescriptionCIMEnumerationImpl
(Enumeration pEnumeration, CIMObjectPath pRequest, CIMNameSpace pDefaultNamespace) CIMEnumerationImpl
(XMLDefaultHandlerImpl pHandler, CIMObjectPath pRequest, CIMNameSpace pDefaultNamespace, InputStreamReader pStream, HttpClient pHttpClient, boolean pUseSAX) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the enumeration by throwing away any remaing xml document without parsing it, while keeping the connection available for future requests.void
close
(boolean pForce) Close the enumeration by throwing away any remaing xml document without parsing it.void
fetchAll()
Fetch all the CIMObjects into memory.void
finalize()
boolean
Determines if this enumeration contains more elements.Reads the next object from the stream.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Enumeration
asIterator
-
Constructor Details
-
CIMEnumerationImpl
public CIMEnumerationImpl(Enumeration pEnumeration, CIMObjectPath pRequest, CIMNameSpace pDefaultNamespace) -
CIMEnumerationImpl
public CIMEnumerationImpl(XMLDefaultHandlerImpl pHandler, CIMObjectPath pRequest, CIMNameSpace pDefaultNamespace, InputStreamReader pStream, HttpClient pHttpClient, boolean pUseSAX)
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Determines if this enumeration contains more elements.- Specified by:
hasMoreElements
in interfaceEnumeration
- Returns:
true
if this enumeration contains more elements
-
nextElement
Reads the next object from the stream.- Specified by:
nextElement
in interfaceEnumeration
- Returns:
- The next object
-
close
Close the enumeration by throwing away any remaing xml document without parsing it, while keeping the connection available for future requests.- Specified by:
close
in interfaceCIMEnumeration
- Throws:
IOException
-
close
Close the enumeration by throwing away any remaing xml document without parsing it. If the force argument is true, then it forces to close the connection without receiving any of the remainding XML document from the CIMOM, otherwise reads the rest of the XML document without parsing it.- Specified by:
close
in interfaceCIMEnumeration
- Parameters:
pForce
- Iftrue
, then the connection is closed without receiving any of the remainding XML document from the CIMOM- Throws:
IOException
-
fetchAll
Fetch all the CIMObjects into memory. Preventing object loss when the CIMOM to close the connection because it timeout.- Specified by:
fetchAll
in interfaceCIMEnumeration
- Throws:
IOException
-
finalize
-