com.ibm.dtfj.image
Interface Image


public interface Image

This class represents an entire operating system image (e.g. a core file). There are methods for accessing information about the architecture of the machine on which the image was running - hardware and operating system. The major feature, however, is the ability to iterate over the Address Spaces contained within the image.


Method Summary
 java.util.Iterator getAddressSpaces()
           
 long getCreationTime()
          Determines when the image was created
 long getInstalledMemory()
           
 int getProcessorCount()
           
 java.lang.String getProcessorSubType()
           
 java.lang.String getProcessorType()
           
 java.lang.String getSystemSubType()
           
 java.lang.String getSystemType()
           
 

Method Detail

getAddressSpaces

java.util.Iterator getAddressSpaces()
Returns:
an Iterator which iterates over all of the address spaces described by this Image
See Also:
ImageAddressSpace, CorruptData

getProcessorType

java.lang.String getProcessorType()
                                  throws DataUnavailable,
                                         CorruptDataException
Returns:
the family name for the processor on which the image was running. This corresponds to the value you would find in the "os.arch" System property.
Throws:
DataUnavailable - if this data cannot be inferred from this core type
CorruptDataException - if expected data cannot be read from the core

getProcessorSubType

java.lang.String getProcessorSubType()
                                     throws DataUnavailable,
                                            CorruptDataException
Returns:
the precise model of the CPU (note that this can be an empty string but not null).
e.g. getProcessorType() will return "x86" where getProcessorSubType() may return "Pentium IV step 4"

Note that this value is platform and implementation dependent.

Throws:
DataUnavailable
CorruptDataException

getProcessorCount

int getProcessorCount()
                      throws DataUnavailable
Returns:
the number of CPUs running in the system on which the image was running
Throws:
DataUnavailable - if the information cannot be provided

getSystemType

java.lang.String getSystemType()
                               throws DataUnavailable,
                                      CorruptDataException
Returns:
the family name for the operating system. This should be the same value that would be returned for the "os.name" system property
Throws:
DataUnavailable - if this data cannot be inferred from this core type
CorruptDataException - if expected data cannot be read from the core

getSystemSubType

java.lang.String getSystemSubType()
                                  throws DataUnavailable,
                                         CorruptDataException
Returns:
the detailed name of the operating system, or an empty string if this information is not available (null will never be returned). This should be the same value that would be returned for the "os.version" system property
Throws:
DataUnavailable
CorruptDataException

getInstalledMemory

long getInstalledMemory()
                        throws DataUnavailable
Returns:
the amount of physical memory installed in the system on which the image was running. The return value is specified in bytes.
Throws:
DataUnavailable - if the information cannot be provided

getCreationTime

long getCreationTime()
                     throws DataUnavailable
Determines when the image was created

Returns:
the time in milliseconds since 1970
Throws:
DataUnavailable