- Start time
- End time
- Duration
- Memory usage before the collection starts
- Memory usage after the collection ends
GcInfo is a CompositeData
The GC-specific attributes can be obtained via the CompositeData
interface. This is a historical relic, and other classes should
not copy this pattern. Use CompositeDataView instead.
GcInfo is mapped to a CompositeData
with attributes as specified in the from method.
| Modifier and Type | Field and Description |
|---|---|
| private final GcInfoBuilder | |
| private final CompositeData | |
| private final long | |
| private final Object[] | |
| private final long | |
| private final long | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private | GcInfo(GcInfoBuilder builder, long index, long startTime, long endTime, MemoryUsage[] muBeforeGc, MemoryUsage[] muAfterGc, Object[] extAttributes)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsKey(String key)
Implements javax. Returns |
| public boolean | containsValue(Object value)
Implements javax. Returns |
| public boolean | equals(Object obj)
Overrides java. Implements javax. Compares the specified obj parameter with this
|
| public static GcInfo | Returns: aGcInfo object represented by cd
if cd is not null; null otherwise.Returns a |
| public Object | get(String key)
Implements javax. Returns the value of the item whose name is |
| public Object[] | getAll(String[] keys)
Implements javax. Returns an array of the values of the items whose names
are specified by |
| public CompositeType | getCompositeType()
Implements javax. Returns the composite type of this composite data instance. |
| public long | Returns: the elapsed time of this GC in milliseconds.Returns the elapsed time of this GC in milliseconds. |
| public long | Returns: the end time of this GC.Returns the end time of this GC in milliseconds since the Java virtual machine was started. |
| public long | Returns: the identifier of this garbage collection which is the number of collections that this collector has done.Returns the identifier of this garbage collection which is the number of collections that this collector has done. |
| public Map | Returns: aMap of memory pool names to the memory
usage of a memory pool when GC finishes.Returns the memory usage of all memory pools at the end of this GC. |
| public Map | Returns: aMap of memory pool names to the memory
usage of a memory pool before GC starts.Returns the memory usage of all memory pools at the beginning of this GC. |
| public long | Returns: the start time of this GC.Returns the start time of this GC in milliseconds since the Java virtual machine was started. |
| public int | hashCode()
Overrides java. Implements javax. Returns the hash code value for this |
| public CompositeData | Returns: theCompositeData representation.the ct)CompositeType that the caller expects.
This parameter is ignored and can be null.Implements javax. Return the |
| public String | toString()
Overrides java. Implements javax. Returns a string representation of this |
| public Collection | values()
Implements javax. Returns an unmodifiable Collection view of the item values
contained in this |
| builder | back to summary |
|---|---|
| private final GcInfoBuilder builder | |
| cdata | back to summary |
|---|---|
| private final CompositeData cdata | |
| endTime | back to summary |
|---|---|
| private final long endTime | |
| extAttributes | back to summary |
|---|---|
| private final Object[] extAttributes | |
| index | back to summary |
|---|---|
| private final long index | |
| startTime | back to summary |
|---|---|
| private final long startTime | |
| usageAfterGc | back to summary |
|---|---|
| private final Map<String, MemoryUsage> usageAfterGc | |
| usageBeforeGc | back to summary |
|---|---|
| private final Map<String, MemoryUsage> usageBeforeGc | |
| GcInfo | back to summary |
|---|---|
| private GcInfo(GcInfoBuilder builder, long index, long startTime, long endTime, MemoryUsage[] muBeforeGc, MemoryUsage[] muAfterGc, Object[] extAttributes) | |
| GcInfo | back to summary |
|---|---|
| private GcInfo(CompositeData cd) | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(String key) Implements javax. Doc from javax. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements javax. Doc from javax. Returns | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements javax. Doc from javax. Compares the specified obj parameter with this
Returns
This ensures that this | |
| from | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static GcInfo from(CompositeData cd) Returns a
| |||||||||||||
| get | back to summary |
|---|---|
| public Object get(String key) Implements javax. Doc from javax. Returns the value of the item whose name is | |
| getAll | back to summary |
|---|---|
| public Object[] getAll(String[] keys) Implements javax. Doc from javax. Returns an array of the values of the items whose names
are specified by | |
| getCompositeType | back to summary |
|---|---|
| public CompositeType getCompositeType() Implements javax. Doc from javax. Returns the composite type of this composite data instance. | |
| getDuration | back to summary |
|---|---|
| public long getDuration() Returns the elapsed time of this GC in milliseconds.
| |
| getEndTime | back to summary |
|---|---|
| public long getEndTime() Returns the end time of this GC in milliseconds since the Java virtual machine was started.
| |
| getId | back to summary |
|---|---|
| public long getId() Returns the identifier of this garbage collection which is the number of collections that this collector has done.
| |
| getMemoryUsageAfterGc | back to summary |
|---|---|
| public Map Returns the memory usage of all memory pools
at the end of this GC.
This method returns
a
| |
| getMemoryUsageBeforeGc | back to summary |
|---|---|
| public Map Returns the memory usage of all memory pools
at the beginning of this GC.
This method returns
a
| |
| getStartTime | back to summary |
|---|---|
| public long getStartTime() Returns the start time of this GC in milliseconds since the Java virtual machine was started.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements javax. Doc from javax. Returns the hash code value for this
The hash code of a
This ensures that
Each item value's hash code is added to the returned hash code.
If an item value is an array,
its hash code is obtained as if by calling the
| |
| toCompositeData | back to summary |
|---|---|
| public CompositeData toCompositeData(CompositeType ct) Implements javax. Return the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements javax. Doc from javax. Returns a string representation of this The string representation consists of the name of the implementing class, the string representation of the composite type of this instance, and the string representation of the contents (ie list the itemName=itemValue mappings). | |
| values | back to summary |
|---|---|
| public Collection Implements javax. Doc from javax. Returns an unmodifiable Collection view of the item values
contained in this | |