jrockit.management
Class DefaultGarbageCollectionHeuristic

java.lang.Object
  extended by jrockit.management.DefaultGarbageCollectionHeuristic
All Implemented Interfaces:
GarbageCollectionHeuristic

public class DefaultGarbageCollectionHeuristic
extends java.lang.Object
implements GarbageCollectionHeuristic

The default implementation of a GarbageCollectionHeuristic.

Author:
Marcus Hirt

Constructor Summary
DefaultGarbageCollectionHeuristic(javax.management.openmbean.CompositeData cd)
          Constructor.
DefaultGarbageCollectionHeuristic(java.lang.String name, java.lang.String description)
          Constructor.
 
Method Summary
static DefaultGarbageCollectionHeuristic from(javax.management.openmbean.CompositeData cd)
          Returns a DefaultGarbageHeuristic object from a composite data.
 java.lang.String getDescription()
          Returns the description of this heuristic, for instance gcprio:paustimes.
 java.lang.String getName()
          Returns the name of this heuristic, for instance gcprio:paustimes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGarbageCollectionHeuristic

public DefaultGarbageCollectionHeuristic(java.lang.String name,
                                         java.lang.String description)
Constructor.

Parameters:
name - name of this heuristic.
description - description of this heuristic.

DefaultGarbageCollectionHeuristic

public DefaultGarbageCollectionHeuristic(javax.management.openmbean.CompositeData cd)
Constructor.

Parameters:
cd - the composite data to use to construct this heuristic.
Method Detail

getName

public java.lang.String getName()
Returns the name of this heuristic, for instance gcprio:paustimes.

Specified by:
getName in interface GarbageCollectionHeuristic
Returns:
the name of the heuristic

getDescription

public java.lang.String getDescription()
Returns the description of this heuristic, for instance gcprio:paustimes.

Specified by:
getDescription in interface GarbageCollectionHeuristic
Returns:
the description of the heuristic
See Also:
GarbageCollectionHeuristic.getDescription()

from

public static DefaultGarbageCollectionHeuristic from(javax.management.openmbean.CompositeData cd)
Returns a DefaultGarbageHeuristic object from a composite data.

Parameters:
cd - the composite data to get the DefaultGarbageHeuristic object from.
Returns:
a DefaultGarbageHeuristic object derived from the composite data.


Copyright © 2004-2005 BEA Systems Inc.