jrockit.management
Interface NurseryMemoryPoolMXBean

All Superinterfaces:
java.lang.management.MemoryPoolMXBean

public interface NurseryMemoryPoolMXBean
extends java.lang.management.MemoryPoolMXBean

This interface exposes nursery-specific information. It is a JRockit-specific extension of MemoryPoolMXBean.

Author:
Marcus Hirt

Method Summary
 long getNurserySize()
          Returns the nursery size in use (in bytes).
 void setNurserySize(long nurserySize)
          Tries setting the nursery to the size indicated.
 
Methods inherited from interface java.lang.management.MemoryPoolMXBean
getCollectionUsage, getCollectionUsageThreshold, getCollectionUsageThresholdCount, getMemoryManagerNames, getName, getPeakUsage, getType, getUsage, getUsageThreshold, getUsageThresholdCount, isCollectionUsageThresholdExceeded, isCollectionUsageThresholdSupported, isUsageThresholdExceeded, isUsageThresholdSupported, isValid, resetPeakUsage, setCollectionUsageThreshold, setUsageThreshold
 

Method Detail

getNurserySize

long getNurserySize()
Returns the nursery size in use (in bytes).

Returns:
the nursery size. 0 means no nursery is used.

setNurserySize

void setNurserySize(long nurserySize)
Tries setting the nursery to the size indicated. The closest value currently possible will be chosen. Read the nursery size after attempting to set this value to see what was chosen.

Parameters:
nurserySize - the new nursery size, in bytes


Copyright © 2004-2005 BEA Systems Inc.