Class GarbageCollectionAlertConfiguration
java.lang.Object
org.openspaces.admin.alert.config.GarbageCollectionAlertConfiguration
- All Implemented Interfaces:
AlertConfiguration,BeanConfig
A Garbage Collection pause alert configuration. Specifies the thresholds for triggering an alert.
There are two thresholds, long period and short period indicating how long a gc took. The garbage
collection alert is raised if the gc took longer than the specified 'long' period. The garbage
collection alert is resolved if gc took less than the specified 'short' period.
- Since:
- 8.0
- Author:
- Moran Avigdor
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty garbage collection pause alert configuration. -
Method Summary
Modifier and TypeMethodDescriptionTheBeanimplementation class name corresponding to this BeanConfig.Get the String key-value pairs properties used to configure this bean.booleanvoidsetEnabled(boolean enabled) voidsetLongGcPausePeriod(long period, TimeUnit timeUnit) Set the period of time a long GC pause alert should be raised for.voidsetProperties(Map<String, String> properties) Set with String key-value pairs to configure properties belonging to this bean.voidsetShortGcPausePeriod(long period, TimeUnit timeUnit) Set the period of time a GC pause alert should be resolved for.
-
Field Details
-
LONG_GC_PAUSE_PERIOD_MILLISECONDS_KEY
Period of time (in milliseconds) the JVM has spent on garbage collection, for which to raise an alert.- See Also:
-
SHORT_GC_PAUSE_PERIOD_MILLISECONDS_KEY
Period of time (in milliseconds) the JVM has spent on garbage collection, for which to resolve an alert.- See Also:
-
-
Constructor Details
-
GarbageCollectionAlertConfiguration
public GarbageCollectionAlertConfiguration()Constructs an empty garbage collection pause alert configuration.
-
-
Method Details
-
setLongGcPausePeriod
Set the period of time a long GC pause alert should be raised for.- Parameters:
period- period of time spent on GC.timeUnit- the time unit of the specified period.
-
getLongGcPausePeriod
- Returns:
- the long GC pause period in milliseconds.
-
setShortGcPausePeriod
Set the period of time a GC pause alert should be resolved for.- Parameters:
period- period of time spent on GC.timeUnit- the time unit of the specified period.
-
getShortGcPausePeriod
- Returns:
- the low GC pause period in milliseconds.
-
setProperties
Set with String key-value pairs to configure properties belonging to this bean. Overrides all previously set properties.- Specified by:
setPropertiesin interfaceBeanConfig- Parameters:
properties- the properties to configure this bean object.
-
getProperties
Get the String key-value pairs properties used to configure this bean.- Specified by:
getPropertiesin interfaceBeanConfig- Returns:
- the properties used to configure this bean object.
-
getBeanClassName
TheBeanimplementation class name corresponding to this BeanConfig.- Specified by:
getBeanClassNamein interfaceBeanConfig- Returns:
- the name of the admin Bean implementation class.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceAlertConfiguration- Returns:
trueif this alert is enabled;falseif this alert is currently disabled.
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceAlertConfiguration- Parameters:
enabled-trueif this alert should be enabled;falseif this alert should be disabled.
-