Interface CIMEnumeration
- All Superinterfaces:
Enumeration
- All Known Implementing Classes:
CIMEnumerationImpl
Provides the mechanisms to stream the response of CIMObjects, returned by the CIMOM.
-
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 force) Close the enumeration by throwing away any remaing xml document without parsing it.void
fetchAll()
Fetch all the CIMObjects into memory.Methods inherited from interface Enumeration
asIterator, hasMoreElements, nextElement
-
Method Details
-
close
Close the enumeration by throwing away any remaing xml document without parsing it, while keeping the connection available for future requests.- 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.- Parameters:
force
-- Throws:
IOException
-
fetchAll
Fetch all the CIMObjects into memory. Preventing object loss when the CIMOM to close the connection because it timeout.- Throws:
IOException
-