public class GcInfo extends Object implements CompositeData, CompositeDataView
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
boolean |
containsValue(Object value) |
boolean |
equals(Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
static GcInfo |
from(CompositeData cd)
Returns a
GcInfo object represented by the
given CompositeData. |
Object |
get(String key) |
Object[] |
getAll(String[] keys) |
CompositeType |
getCompositeType() |
long |
getDuration()
Returns the elapsed time of this GC in milliseconds.
|
long |
getEndTime()
Returns the end time of this GC in milliseconds
since the Java virtual machine was started.
|
long |
getId() |
Map<String,MemoryUsage> |
getMemoryUsageAfterGc()
Returns the memory usage of all memory pools
at the end of this GC.
|
Map<String,MemoryUsage> |
getMemoryUsageBeforeGc()
Returns the memory usage of all memory pools
at the beginning of this GC.
|
long |
getStartTime()
Returns the start time of this GC in milliseconds
since the Java virtual machine was started.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
CompositeData |
toCompositeData(CompositeType ct)
Return the
CompositeData representation of this
GcInfo, including any GC-specific attributes. |
String |
toString()
Answers a string containing a concise, human-readable
description of the receiver.
|
Collection<?> |
values() |
public long getId()
public long getStartTime()
public long getEndTime()
public long getDuration()
public Map<String,MemoryUsage> getMemoryUsageBeforeGc()
Map of the name of a memory pool
to the memory usage of the corresponding
memory pool before GC starts.Map of memory pool names to the memory
usage of a memory pool before GC starts.public Map<String,MemoryUsage> getMemoryUsageAfterGc()
Map of the name of a memory pool
to the memory usage of the corresponding
memory pool when GC finishes.Map of memory pool names to the memory
usage of a memory pool when GC finishes.public static GcInfo from(CompositeData cd)
GcInfo object represented by the
given CompositeData. The given
CompositeData must contain
all the following attributes:
| Attribute Name | Type |
|---|---|
| index | java.lang.Long |
| startTime | java.lang.Long |
| endTime | java.lang.Long |
| memoryUsageBeforeGc | javax.management.openmbean.TabularData |
| memoryUsageAfterGc | javax.management.openmbean.TabularData |
cd - CompositeData representing a GcInfoGcInfo object represented by cd
if cd is not null; null otherwise.IllegalArgumentException - if cd does not
represent a GcInfo object with the attributes
described above.public boolean containsKey(String key)
containsKey in interface CompositeDatapublic boolean containsValue(Object value)
containsValue in interface CompositeDatapublic boolean equals(Object obj)
equals in interface CompositeDataequals in class Objectobj - Object
the object to compare with this object.true
if the object is the same as this object
false
if it is different from this object.Object.hashCode()public Object get(String key)
get in interface CompositeDatapublic Object[] getAll(String[] keys)
getAll in interface CompositeDatapublic CompositeType getCompositeType()
getCompositeType in interface CompositeDatapublic int hashCode()
true when passed to
.equals must answer the same value for this
method.hashCode in interface CompositeDatahashCode in class ObjectObject.equals(java.lang.Object)public String toString()
toString in interface CompositeDatatoString in class Objectpublic Collection<?> values()
values in interface CompositeDatapublic CompositeData toCompositeData(CompositeType ct)
Return the CompositeData representation of this
GcInfo, including any GC-specific attributes. The
returned value will have at least all the attributes described
in the from method, plus optionally
other attributes.
toCompositeData in interface CompositeDataViewct - the CompositeType that the caller expects.
This parameter is ignored and can be null.CompositeData representation.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2025 IBM Corp. and others.