Top Description Fields Constructors Methods
com.sun.management.internal

public Class GcInfoBuilder

extends Object
Class Inheritance
Imports
java.lang.management.GarbageCollectorMXBean, .MemoryUsage, javax.management.openmbean.OpenType, .SimpleType, .CompositeType, .OpenDataException, com.sun.management.GcInfo, sun.management.Util

Helper class to build composite data.

Field Summary

Modifier and TypeField and Description
private String[]
private final GarbageCollectorMXBean
private final int
private final String[]
private final String[]
private final char[]
private CompositeType
private final String[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private native void
fillGcAttributeInfo(GarbageCollectorMXBean gc, int numAttributes, String[] attributeNames, char[] types, String[] descriptions)

pack-priv int
pack-priv synchronized CompositeType
pack-priv synchronized String[]
pack-priv GcInfo
private native GcInfo
getLastGcInfo0(GarbageCollectorMXBean
GarbageCollectorMXBean that the gc info is associated with.
gc
,
int
number of extension attributes
numExtAtts
,
Object[]
Values of extension attributes to be filled.
extAttValues
,
char[] extAttTypes, MemoryUsage[]
Memory usage before GC to be filled.
before
,
MemoryUsage[]
Memory usage after GC to be filled.
after
)

Returns the last GcInfo

private native int
public String[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allItemNamesback to summary
private String[] allItemNames
gcback to summary
private final GarbageCollectorMXBean gc
gcExtItemCountback to summary
private final int gcExtItemCount
gcExtItemDescsback to summary
private final String[] gcExtItemDescs
gcExtItemNamesback to summary
private final String[] gcExtItemNames
gcExtItemTypesback to summary
private final char[] gcExtItemTypes
gcInfoCompositeTypeback to summary
private CompositeType gcInfoCompositeType
poolNamesback to summary
private final String[] poolNames

Constructor Detail

GcInfoBuilderback to summary
pack-priv GcInfoBuilder(GarbageCollectorMXBean gc, String[] poolNames)

Method Detail

fillGcAttributeInfoback to summary
private native void fillGcAttributeInfo(GarbageCollectorMXBean gc, int numAttributes, String[] attributeNames, char[] types, String[] descriptions)
getGcExtItemCountback to summary
pack-priv int getGcExtItemCount()
getGcInfoCompositeTypeback to summary
pack-priv synchronized CompositeType getGcInfoCompositeType()
getItemNamesback to summary
pack-priv synchronized String[] getItemNames()
getLastGcInfoback to summary
pack-priv GcInfo getLastGcInfo()
getLastGcInfo0back to summary
private native GcInfo getLastGcInfo0(GarbageCollectorMXBean gc, int numExtAtts, Object[] extAttValues, char[] extAttTypes, MemoryUsage[] before, MemoryUsage[] after)

Returns the last GcInfo

Parameters
gc:GarbageCollectorMXBean

GarbageCollectorMXBean that the gc info is associated with.

numExtAtts:int

number of extension attributes

extAttValues:Object[]

Values of extension attributes to be filled.

before:MemoryUsage[]

Memory usage before GC to be filled.

after:MemoryUsage[]

Memory usage after GC to be filled.

getNumGcExtAttributesback to summary
private native int getNumGcExtAttributes(GarbageCollectorMXBean gc)
getPoolNamesback to summary
public String[] getPoolNames()