Class CIMEnumerationImpl

java.lang.Object
org.sblim.wbem.client.CIMEnumerationImpl
All Implemented Interfaces:
Enumeration, CIMEnumeration

public class CIMEnumerationImpl extends Object implements CIMEnumeration
Provides the mechanisms to stream the response of CIMObjects, returned by the CIMOM.
  • Constructor Details

  • Method Details

    • hasMoreElements

      public boolean hasMoreElements()
      Determines if this enumeration contains more elements.
      Specified by:
      hasMoreElements in interface Enumeration
      Returns:
      true if this enumeration contains more elements
    • nextElement

      public Object nextElement()
      Reads the next object from the stream.
      Specified by:
      nextElement in interface Enumeration
      Returns:
      The next object
    • close

      public void close() throws IOException
      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 interface CIMEnumeration
      Throws:
      IOException
    • close

      public void close(boolean pForce) throws IOException
      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 interface CIMEnumeration
      Parameters:
      pForce - If true, then the connection is closed without receiving any of the remainding XML document from the CIMOM
      Throws:
      IOException
    • fetchAll

      public void fetchAll() throws IOException
      Fetch all the CIMObjects into memory. Preventing object loss when the CIMOM to close the connection because it timeout.
      Specified by:
      fetchAll in interface CIMEnumeration
      Throws:
      IOException
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object