jrockit.management
Class MarkAndSweepStrategy

java.lang.Object
  extended by jrockit.management.MarkAndSweepStrategy
All Implemented Interfaces:
GarbageCollectionStrategy

public class MarkAndSweepStrategy
extends java.lang.Object
implements GarbageCollectionStrategy

Simple object encapsulating the information of a MarkAndSweep GCStrategy.

Author:
Marcus Hirt

Constructor Summary
MarkAndSweepStrategy(boolean isGenerational, boolean isConcurrentMark, boolean isConcurrentSweep)
          Constructor.
MarkAndSweepStrategy(javax.management.openmbean.CompositeData cd)
          Constructor.
 
Method Summary
static MarkAndSweepStrategy from(javax.management.openmbean.CompositeData cd)
          Returns a MarkAndSweepStrategy from a composite data
 java.lang.String getDescription()
          Returns a description of this strategy.
 java.lang.String getName()
          Returns the name of this strategy.
 boolean isConcurrentMark()
          Returns true if this strategy is concurrent mark, false otherwise
 boolean isConcurrentSweep()
          Returns true if this strategy is concurrent sweep, false otherwise
 boolean isGenerational()
          Returns true if this strategy is generational, false otherwise.
 java.lang.String toString()
          Returns a string representation of this strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarkAndSweepStrategy

public MarkAndSweepStrategy(boolean isGenerational,
                            boolean isConcurrentMark,
                            boolean isConcurrentSweep)
Constructor.

Parameters:
isGenerational -
isConcurrentMark -
isConcurrentSweep -

MarkAndSweepStrategy

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

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

from

public static MarkAndSweepStrategy from(javax.management.openmbean.CompositeData cd)
Returns a MarkAndSweepStrategy from a composite data

Parameters:
cd - the composite data to use to construct this strategy.
Returns:
the strategy

isConcurrentMark

public boolean isConcurrentMark()
Returns true if this strategy is concurrent mark, false otherwise

See Also:
isConcurrentMark()

isConcurrentSweep

public boolean isConcurrentSweep()
Returns true if this strategy is concurrent sweep, false otherwise

See Also:
isConcurrentSweep()

isGenerational

public boolean isGenerational()
Returns true if this strategy is generational, false otherwise.

See Also:
isGenerational()

toString

public java.lang.String toString()
Returns a string representation of this strategy.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getName

public java.lang.String getName()
Returns the name of this strategy.

Specified by:
getName in interface GarbageCollectionStrategy
Returns:
the name of the garbage collection strategy
See Also:
GarbageCollectionStrategy.getName()

getDescription

public java.lang.String getDescription()
Returns a description of this strategy.

Specified by:
getDescription in interface GarbageCollectionStrategy
Returns:
the description of the garabage collection strategy
See Also:
GarbageCollectionStrategy.getDescription()


Copyright © 2004-2005 BEA Systems Inc.