- java.lang.Object
-
- com.sun.management.internal.GcInfoUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompositeType
getCompositeType()
static GcInfo
newGcInfoInstance(long index, long startTime, long endTime, Map<String,MemoryUsage> usageBeforeGc, Map<String,MemoryUsage> usageAfterGc)
static CompositeData
toCompositeData(GcInfo info)
-
-
-
Method Detail
-
getCompositeType
public static CompositeType getCompositeType()
- Returns:
- an instance of
CompositeType
for theGcInfo
class
-
toCompositeData
public static CompositeData toCompositeData(GcInfo info)
- 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
-
-