Class PhysicalMemoryUtilizationAlertConfiguration
java.lang.Object
org.openspaces.admin.alert.config.PhysicalMemoryUtilizationAlertConfiguration
- All Implemented Interfaces:
AlertConfiguration,BeanConfig
public class PhysicalMemoryUtilizationAlertConfiguration
extends Object
implements AlertConfiguration
A physical memory utilization alert configuration. Specifies the thresholds for triggering an
alert. There are two thresholds, high and low and a measurement period indicating a window for
the memory reading. The memory utilization alert is raised if any discovered machine is above the
specified physical memory threshold for a period of time. The memory utilization alert is
resolved if its physical memory reading goes below the specified memory threshold for a period of
time.
- Since:
- 8.0
- Author:
- Moran Avigdor
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHigh threshold for which to trigger an alert which needs resolution.static final StringLow threshold for which to resolve a previously triggered physical memory alert.static final StringPeriod of time (in milliseconds) the physical memory is above/below a certain threshold to trigger an alert. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty physical memory utilization 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) voidsetHighThresholdPerc(int highThreshold) Set the physical memory high threshold percentage value.voidsetLowThresholdPerc(int lowThreshold) Set the physical memory low threshold percentage value.voidsetMeasurementPeriod(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.voidsetProperties(Map<String, String> properties) Set with String key-value pairs to configure properties belonging to this bean.
-
Field Details
-
MEASUREMENT_PERIOD_MILLISECONDS_KEY
Period of time (in milliseconds) the physical memory is above/below a certain threshold to trigger an alert.- See Also:
-
LOW_THRESHOLD_PERC_KEY
Low threshold for which to resolve a previously triggered physical memory alert. An alert will be triggered if physical memory goes below this threshold for a certain period of time.- See Also:
-
HIGH_THRESHOLD_PERC_KEY
High threshold for which to trigger an alert which needs resolution. An alert will be triggered if physical memory goes above this threshold for a certain period of time.- See Also:
-
-
Constructor Details
-
PhysicalMemoryUtilizationAlertConfiguration
public PhysicalMemoryUtilizationAlertConfiguration()Constructs an empty physical memory utilization alert configuration.
-
-
Method Details
-
setHighThresholdPerc
public void setHighThresholdPerc(int highThreshold) Set the physical memory high threshold percentage value.- Parameters:
highThreshold- high threshold percentage.
-
getHighThresholdPerc
- Returns:
- the physical memory high threshold percentage.
-
setLowThresholdPerc
public void setLowThresholdPerc(int lowThreshold) Set the physical memory low threshold percentage value.- Parameters:
lowThreshold- low threshold percentage.
-
getLowThresholdPerc
- Returns:
- the physical memory low threshold percentage.
-
setMeasurementPeriod
Set the period of time a physical memory alert should be triggered if it's reading is above/below the threshold setting.- Parameters:
period- period of time.timeUnit- the time unit of the specified period.
-
getMeasurementPeriod
- Returns:
- the measurement 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.
-