public interface Image
Represents an entire operating system image (for example, 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.
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this image and any associated resources.
|
Iterator |
getAddressSpaces()
Get the set of address spaces within the image - typically one but may be more on some
systems such as Z/OS.
|
long |
getCreationTime()
Get the time when the image was created
|
long |
getCreationTimeNanos()
Get the value of the JVM's high-resolution timer when the image was created.
|
String |
getHostName()
Get the host name of the system where the image was running.
|
long |
getInstalledMemory()
Get the amount of physical memory (in bytes) installed in the system on which
the image was running.
|
Iterator |
getIPAddresses()
The set of IP addresses (as InetAddresses) which the system running the image possessed.
|
int |
getProcessorCount()
Get the number of CPUs running in the system on which the image was running.
|
String |
getProcessorSubType()
Get the precise model of the CPU.
|
String |
getProcessorType()
Get the family name for the processor on which the image was
running.
|
Properties |
getProperties()
Gets the OS specific properties for this image.
|
URI |
getSource()
A unique identifier for the source of this image
|
String |
getSystemSubType()
Get the detailed name of the operating system.
|
String |
getSystemType()
Get the family name for the operating system.
|
default boolean |
isTruncated()
Is this image truncated (i.e.
|
Iterator getAddressSpaces()
ImageAddressSpace
,
CorruptData
String getProcessorType() throws DataUnavailable, CorruptDataException
DataUnavailable
- if this data cannot be inferred from this core typeCorruptDataException
- if expected data cannot be read from the coreString getProcessorSubType() throws DataUnavailable, CorruptDataException
x86where getProcessorSubType() may return
Pentium IV step 4
Note that this value is platform and implementation dependent.
DataUnavailable
CorruptDataException
int getProcessorCount() throws DataUnavailable
DataUnavailable
- if the information cannot be providedString getSystemType() throws DataUnavailable, CorruptDataException
DataUnavailable
- if this data cannot be inferred from this core typeCorruptDataException
- if expected data cannot be read from the coreString getSystemSubType() throws DataUnavailable, CorruptDataException
DataUnavailable
CorruptDataException
long getInstalledMemory() throws DataUnavailable
DataUnavailable
- if the information cannot be providedlong getCreationTime() throws DataUnavailable
DataUnavailable
String getHostName() throws DataUnavailable, CorruptDataException
DataUnavailable
- If the image did not provide this information (would happen
if the system did not know its host name or if the image predated this feature).CorruptDataException
Iterator getIPAddresses() throws DataUnavailable
DataUnavailable
- If the image did not provide this information (would happen
if the system failed to look them up or if the image pre-dated this feature).InetAddress
,
CorruptData
void close()
Close this image and any associated resources.
Some kinds of Image require the generation of temporary resources, for example temporary files created when reading core files and libraries from .zip archives. Ordinarily, these resources are deleted at JVM shutdown, but DTFJ applications may want to free them earlier. This method should only be called when the Image is no longer needed. After this method has been called, any objects associated with the image will be in an invalid state.
Properties getProperties()
URI getSource()
long getCreationTimeNanos() throws DataUnavailable, CorruptDataException
DataUnavailable
- if the image creation time is not availableCorruptDataException
- if the image creation time is corrupteddefault boolean isTruncated()
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2025 IBM Corp. and others.