public class GCPreferences
extends java.lang.Object
| Constructor and Description |
|---|
GCPreferences()
Initializes the default set of preferences.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCompactionPercentageThreshold()
Gets the threshold above which a warning is given for excessive
compaction.
|
int |
getHighOccupancyThreshold()
Gets the threshold above which a warning is given for high occupancy.
|
int |
getLowOccupancyThreshold()
Gets the threshold below which a warning is given for low occupancy.
|
int |
getPauseLengthThreshold()
Gets the threshold above which a warning is given for long pauses.
|
int |
getSystemGCPercentageThreshold()
Gets the threshold above which a warning is given for excessive system
garbage collections.
|
void |
setCompactionPercentageThreshold(int value)
Sets the threshold above which a warning is given for excessive
compaction.
|
void |
setDefaults()
Initializes the Health Center preferences to their default values.
|
void |
setHighOccupancyThreshold(int value)
Sets the threshold above which a warning is given for high occupancy.
|
void |
setLowOccupancyThreshold(int value)
Sets the threshold below which a warning is given for low occupancy.
|
void |
setPauseLengthThreshold(int ms)
Sets the threshold above which a warning is given for long pauses.
|
void |
setSystemGCPercentageThreshold(int value)
Sets the threshold above which a warning is given for excessive system
garbage collections.
|
public int getLowOccupancyThreshold()
public int getHighOccupancyThreshold()
public int getPauseLengthThreshold()
public int getCompactionPercentageThreshold()
public int getSystemGCPercentageThreshold()
public void setLowOccupancyThreshold(int value)
value - the lower threshold, as a percentage of used heap.public void setHighOccupancyThreshold(int value)
value - the upper threshold, as a percentage of used heap.public void setPauseLengthThreshold(int ms)
ms - the pause length threshold, in milliseconds.public void setCompactionPercentageThreshold(int value)
value - the compaction threshold, as a percentage of garbage
collections.public void setSystemGCPercentageThreshold(int value)
value - the system garbage collection threshold, as a percentage of
garbage collections.public void setDefaults()