jrockit.management
Interface GarbageCollectorMXBean

All Superinterfaces:
java.lang.management.GarbageCollectorMXBean, java.lang.management.MemoryManagerMXBean
All Known Subinterfaces:
MarkAndSweepGarbageCollectorMXBean

public interface GarbageCollectorMXBean
extends java.lang.management.GarbageCollectorMXBean

This interface exposes garbage collection-specific information. It is a JRockit-specific extension of java.lang.management.GarbageCollectorMXBean.

Author:
Marcus Hirt

Method Summary
 GarbageCollectionHeuristic getHeuristic()
          The heuristic represents the overall goal this GarbageCollector is currently persuing.
 long getNurserySize()
          Deprecated. 
 GarbageCollectionStrategy getStrategy()
          The strategy shows the currently used strategy employed to meet the goals defined by the heuristic.
 void setNurserySize(long nurserySize)
          Deprecated. 
 
Methods inherited from interface java.lang.management.GarbageCollectorMXBean
getCollectionCount, getCollectionTime
 
Methods inherited from interface java.lang.management.MemoryManagerMXBean
getMemoryPoolNames, getName, isValid
 

Method Detail

getNurserySize

@Deprecated
long getNurserySize()
Deprecated. 

Returns the nursery size in use (in bytes).

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

setNurserySize

@Deprecated
void setNurserySize(long nurserySize)
Deprecated. 

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.

getHeuristic

GarbageCollectionHeuristic getHeuristic()
The heuristic represents the overall goal this GarbageCollector is currently persuing.

Returns:
the heuristic currently in use.

getStrategy

GarbageCollectionStrategy getStrategy()
The strategy shows the currently used strategy employed to meet the goals defined by the heuristic.

Returns:
the strategy being employed.


Copyright © 2004-2005 BEA Systems Inc.