public class PhysicalMemoryUtilizationAlertConfigurer extends Object implements AlertConfigurer
Use the call to create() to create a fully initialized PhysicalMemoryUtilizationAlertConfiguration configuration.
PhysicalMemoryUtilizationAlertConfiguration| Constructor and Description |
|---|
PhysicalMemoryUtilizationAlertConfigurer()
Constructs an empty machine physical memory utilization alert configuration.
|
| Modifier and Type | Method and Description |
|---|---|
PhysicalMemoryUtilizationAlertConfiguration |
create()
Get a fully configured physical memory utilization configuration (after all properties have
been set).
|
PhysicalMemoryUtilizationAlertConfigurer |
enable(boolean enabled)
Enable an alert using this configuration.
|
PhysicalMemoryUtilizationAlertConfigurer |
measurementPeriod(long period,
TimeUnit timeUnit)
Set the period of time a physical memory alert should be triggered if it's reading is
above/below the threshold setting.
|
PhysicalMemoryUtilizationAlertConfigurer |
raiseAlertIfMemoryAbove(int highThreshold)
Raise an alert if physical memory is above the specified threshold for a period of time.
|
PhysicalMemoryUtilizationAlertConfigurer |
resolveAlertIfMemoryBelow(int lowThreshold)
Resolve the previously raised alert if physical memory goes below the specified threshold for
a period of time.
|
public PhysicalMemoryUtilizationAlertConfigurer()
public PhysicalMemoryUtilizationAlertConfigurer enable(boolean enabled)
AlertConfigurerenable in interface AlertConfigurerenabled - true to enable the alert using this configuration;
false to disable the alert.AlertConfiguration.setEnabled(boolean)public PhysicalMemoryUtilizationAlertConfigurer raiseAlertIfMemoryAbove(int highThreshold)
measurementPeriod(long, TimeUnit).highThreshold - high threshold percentage.PhysicalMemoryUtilizationAlertConfiguration.setHighThresholdPerc(int)public PhysicalMemoryUtilizationAlertConfigurer resolveAlertIfMemoryBelow(int lowThreshold)
measurementPeriod(long,
TimeUnit).lowThreshold - low threshold percentage.PhysicalMemoryUtilizationAlertConfiguration.setLowThresholdPerc(int)public PhysicalMemoryUtilizationAlertConfigurer measurementPeriod(long period, TimeUnit timeUnit)
period - period of time.timeUnit - the time unit of the specified period.public PhysicalMemoryUtilizationAlertConfiguration create()
create in interface BeanConfigurer<AlertConfiguration>Copyright © GigaSpaces.