Class GarbageCollectionAlertConfigurer
java.lang.Object
org.openspaces.admin.alert.config.GarbageCollectionAlertConfigurer
- All Implemented Interfaces:
AlertConfigurer,BeanConfigurer<AlertConfiguration>
A Garbage Collection pause alert configurer. 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.
Use the call
to create() to create a fully initialized GarbageCollectionAlertConfiguration
configuration.
- Since:
- 8.0
- Author:
- Moran Avigdor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty garbage collection pause alert configuration. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Get a fully configured garbage collection pause configuration (after all properties have been set).enable(boolean enabled) Enable an alert using this configuration.raiseAlertForGcDurationOf(long period, TimeUnit timeUnit) Raise an alert if gc took longer than the specified period of time.resolveAlertForGcDurationOf(long period, TimeUnit timeUnit) Resolve a previously raised alert if gc took less than the specified period of time.
-
Constructor Details
-
GarbageCollectionAlertConfigurer
public GarbageCollectionAlertConfigurer()Constructs an empty garbage collection pause alert configuration.
-
-
Method Details
-
enable
Description copied from interface:AlertConfigurerEnable an alert using this configuration. By default an alert is disabled.- Specified by:
enablein interfaceAlertConfigurer- Parameters:
enabled-trueto enable the alert using this configuration;falseto disable the alert.- Returns:
- this.
- See Also:
-
raiseAlertForGcDurationOf
Raise an alert if gc took longer than the specified period of time.- Parameters:
period- period of time spent on GC.timeUnit- the time unit of the specified period.- Returns:
- this.
- See Also:
-
resolveAlertForGcDurationOf
Resolve a previously raised alert if gc took less than the specified period of time.- Parameters:
period- period of time spent on GC.timeUnit- the time unit of the specified period.- Returns:
- this.
- See Also:
-
create
Get a fully configured garbage collection pause configuration (after all properties have been set).- Specified by:
createin interfaceBeanConfigurer<AlertConfiguration>- Returns:
- a fully configured alert bean configuration.
-