|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.alert.config.GarbageCollectionAlertConfigurer
public class GarbageCollectionAlertConfigurer
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.
GarbageCollectionAlertConfiguration
Constructor Summary | |
---|---|
GarbageCollectionAlertConfigurer()
Constructs an empty garbage collection pause alert configuration. |
Method Summary | |
---|---|
GarbageCollectionAlertConfiguration |
create()
Get a fully configured garbage collection pause configuration (after all properties have been set). |
GarbageCollectionAlertConfigurer |
enable(boolean enabled)
Enable an alert using this configuration. |
GarbageCollectionAlertConfigurer |
raiseAlertForGcDurationOf(long period,
TimeUnit timeUnit)
Raise an alert if gc took longer than the specified period of time. |
GarbageCollectionAlertConfigurer |
resolveAlertForGcDurationOf(long period,
TimeUnit timeUnit)
Resolve a previously raised alert if gc took less than the specified period of time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GarbageCollectionAlertConfigurer()
Method Detail |
---|
public GarbageCollectionAlertConfigurer enable(boolean enabled)
AlertConfigurer
enable
in interface AlertConfigurer
enabled
- true
to enable the alert using this configuration; false
to disable the alert.
AlertConfiguration.setEnabled(boolean)
public GarbageCollectionAlertConfigurer raiseAlertForGcDurationOf(long period, TimeUnit timeUnit)
period
- period of time spent on GC.timeUnit
- the time unit of the specified period.
GarbageCollectionAlertConfiguration.setLongGcPausePeriod(long, TimeUnit)
public GarbageCollectionAlertConfigurer resolveAlertForGcDurationOf(long period, TimeUnit timeUnit)
period
- period of time spent on GC.timeUnit
- the time unit of the specified period.
GarbageCollectionAlertConfiguration.setShortGcPausePeriod(long, TimeUnit)
public GarbageCollectionAlertConfiguration create()
create
in interface BeanConfigurer<AlertConfiguration>
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |