public class GarbageCollectionAlertConfiguration extends Object implements AlertConfiguration
GarbageCollectionAlertConfigurer
Modifier and Type | Field and Description |
---|---|
static String |
LONG_GC_PAUSE_PERIOD_MILLISECONDS_KEY
Period of time (in milliseconds) the JVM has spent on garbage collection, for which to
raise an alert.
|
static String |
SHORT_GC_PAUSE_PERIOD_MILLISECONDS_KEY
Period of time (in milliseconds) the JVM has spent on garbage collection, for which to
resolve an alert.
|
Constructor and Description |
---|
GarbageCollectionAlertConfiguration()
Constructs an empty garbage collection pause alert configuration.
|
Modifier and Type | Method and Description |
---|---|
String |
getBeanClassName()
The
Bean implementation class name corresponding to this BeanConfig. |
Long |
getLongGcPausePeriod() |
Map<String,String> |
getProperties()
Get the String key-value pairs properties used to configure this bean.
|
Long |
getShortGcPausePeriod() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setLongGcPausePeriod(long period,
TimeUnit timeUnit)
Set the period of time a long GC pause alert should be raised for.
|
void |
setProperties(Map<String,String> properties)
Set with String key-value pairs to configure properties belonging to this bean.
|
void |
setShortGcPausePeriod(long period,
TimeUnit timeUnit)
Set the period of time a GC pause alert should be resolved for.
|
public static final String LONG_GC_PAUSE_PERIOD_MILLISECONDS_KEY
public static final String SHORT_GC_PAUSE_PERIOD_MILLISECONDS_KEY
public GarbageCollectionAlertConfiguration()
public void setLongGcPausePeriod(long period, TimeUnit timeUnit)
period
- period of time spent on GC.timeUnit
- the time unit of the specified period.public Long getLongGcPausePeriod()
public void setShortGcPausePeriod(long period, TimeUnit timeUnit)
period
- period of time spent on GC.timeUnit
- the time unit of the specified period.public Long getShortGcPausePeriod()
public void setProperties(Map<String,String> properties)
setProperties
in interface BeanConfig
properties
- the properties to configure this bean object.public Map<String,String> getProperties()
getProperties
in interface BeanConfig
public String getBeanClassName()
Bean
implementation class name corresponding to this BeanConfig.getBeanClassName
in interface BeanConfig
public boolean isEnabled()
isEnabled
in interface AlertConfiguration
true
if this alert is enabled; false
if this alert is
currently disabled.public void setEnabled(boolean enabled)
setEnabled
in interface AlertConfiguration
enabled
- true
if this alert should be enabled; false
if this
alert should be disabled.Copyright © GigaSpaces.