java.lang.Object
com.sun.management.internal.GcInfoUtil
Support for the
GcInfo
class.-
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeType
static GcInfo
newGcInfoInstance
(long index, long startTime, long endTime, Map<String, MemoryUsage> usageBeforeGc, Map<String, MemoryUsage> usageAfterGc) static CompositeData
toCompositeData
(GcInfo info)
-
Method Details
-
getCompositeType
- Returns:
- an instance of
CompositeType
for theGcInfo
class
-
toCompositeData
- Parameters:
info
- the garbage collection information- Returns:
- a new
CompositeData
instance that represents the suppliedinfo
object
-
newGcInfoInstance
public static GcInfo newGcInfoInstance(long index, long startTime, long endTime, Map<String, MemoryUsage> usageBeforeGc, Map<String, MemoryUsage> usageAfterGc) - Parameters:
index
- the identifier of this garbage collection which is the number of collections that this collector has donestartTime
- the start time of the collection in milliseconds since the Java virtual machine was started.endTime
- the end time of the collection in milliseconds since the Java virtual machine was started.usageBeforeGc
- the memory usage of all memory pools at the beginning of this GC.usageAfterGc
- the memory usage of all memory pools at the end of this GC.- Returns:
- a
GcInfo
object
-