|
GigaSpaces XAP 10.0.1 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.GarbageCollectionAlertConfiguration
public class GarbageCollectionAlertConfiguration
A Garbage Collection pause alert configuration. 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.
GarbageCollectionAlertConfigurer
Field Summary | |
---|---|
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 Summary | |
---|---|
GarbageCollectionAlertConfiguration()
Constructs an empty garbage collection pause alert configuration. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LONG_GC_PAUSE_PERIOD_MILLISECONDS_KEY
public static final String SHORT_GC_PAUSE_PERIOD_MILLISECONDS_KEY
Constructor Detail |
---|
public GarbageCollectionAlertConfiguration()
Method Detail |
---|
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.
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |