APIdia Launch Partner
Top Fields Constructors Methods
sun.tools.jconsole

public Class MemoryPoolStat

extends Object
Class Inheritance
Imports
java.lang.management.MemoryUsage

Field Summary

Modifier and TypeField and Description
private MemoryUsage
private MemoryUsage
private long
private long
private long
private long
private String
private MemoryUsage
private long

Constructor Summary

AccessConstructor and Description
pack-priv
MemoryPoolStat(String name, long usageThreshold, MemoryUsage usage, long lastGcId, long lastGcStartTime, long lastGcEndTime, long collectThreshold, MemoryUsage beforeGcUsage, MemoryUsage afterGcUsage)

Method Summary

Modifier and TypeMethod and Description
public MemoryUsage
getAfterGcUsage()

Returns the memory usage after the most recent GC finished.

public MemoryUsage
getBeforeGcUsage()

Returns the memory usage before the most recent GC started.

public long
getCollectionUsageThreshold()

Returns the current collection usage threshold.

public long
getLastGcEndTime()

Returns the end time of the most recent GC on the memory pool for this statistics in milliseconds.

public long
getLastGcId()

Returns the Id of GC.

public long
getLastGcStartTime()

Returns the start time of the most recent GC on the memory pool for this statistics in milliseconds.

public String
getPoolName()

Returns the memory pool name.

public MemoryUsage
getUsage()

Returns the current memory usage.

public long
getUsageThreshold()

Returns the current usage threshold.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

afterGcUsageback to summary
private MemoryUsage afterGcUsage
beforeGcUsageback to summary
private MemoryUsage beforeGcUsage
collectThresholdback to summary
private long collectThreshold
lastGcEndTimeback to summary
private long lastGcEndTime
lastGcIdback to summary
private long lastGcId
lastGcStartTimeback to summary
private long lastGcStartTime
poolNameback to summary
private String poolName
usageback to summary
private MemoryUsage usage
usageThresholdback to summary
private long usageThreshold

Constructor Detail

MemoryPoolStatback to summary
pack-priv MemoryPoolStat(String name, long usageThreshold, MemoryUsage usage, long lastGcId, long lastGcStartTime, long lastGcEndTime, long collectThreshold, MemoryUsage beforeGcUsage, MemoryUsage afterGcUsage)

Method Detail

getAfterGcUsageback to summary
public MemoryUsage getAfterGcUsage()

Returns the memory usage after the most recent GC finished. null if no GC occurs.

getBeforeGcUsageback to summary
public MemoryUsage getBeforeGcUsage()

Returns the memory usage before the most recent GC started. null if no GC occurs.

getCollectionUsageThresholdback to summary
public long getCollectionUsageThreshold()

Returns the current collection usage threshold. -1 if not supported.

getLastGcEndTimeback to summary
public long getLastGcEndTime()

Returns the end time of the most recent GC on the memory pool for this statistics in milliseconds. Return 0 if no GC occurs.

getLastGcIdback to summary
public long getLastGcId()

Returns the Id of GC.

getLastGcStartTimeback to summary
public long getLastGcStartTime()

Returns the start time of the most recent GC on the memory pool for this statistics in milliseconds. Return 0 if no GC occurs.

getPoolNameback to summary
public String getPoolName()

Returns the memory pool name.

getUsageback to summary
public MemoryUsage getUsage()

Returns the current memory usage.

getUsageThresholdback to summary
public long getUsageThreshold()

Returns the current usage threshold. -1 if not supported.