wt.jmx.core.mbeans
Interface GarbageCollectionMonitorMBean

All Superinterfaces:
SelfEmailingMBean

public interface GarbageCollectionMonitorMBean
extends SelfEmailingMBean

Provides simple interface to monitor percentage of time recently spent in garbage collection

The MBeans built into Java 5 provide the necessary statistics, but not notifications, nor the necessary derived statistic -- garbage collection as a percentage of overall time.

Supported API: true

Extendable: true


Field Summary
static String GC_THRESHOLD_EXCEEDED_INITIAL_NOTIF_TYPE
          Type of notification produced when PercentTimeSpentInGCThreshold is initially exceeded

Supported API: true
static String GC_THRESHOLD_EXCEEDED_NO_LONGER_NOTIF_TYPE
          Type of notification produced when PercentTimeSpentInGCThreshold is no longer exceeded

Supported API: true
static String GC_THRESHOLD_EXCEEDED_STILL_NOTIF_TYPE
          Type of notification produced when PercentTimeSpentInGCThreshold is still exceeded

Supported API: true
 
Method Summary
 double getPercentTimeSpentInGCThreshold()
          Threshold percentage of time spent in GC during an interval above which a notification will be issued

Supported API: true
 int getRecentIntervalSeconds()
          Duration of recent time interval in seconds

Supported API: true
 double getRecentPercentTimeSpentInGC()
          Percentage of time spent performing garbage collection during recent time interval

Supported API: true
 void setPercentTimeSpentInGCThreshold(double percentTimeSpentInGCThreshold)
          Threshold percentage of time spent in GC during an interval above which a notification will be issued

Supported API: true
 void setRecentIntervalSeconds(int recentIntervalSeconds)
          Duration of recent time interval in seconds

Supported API: true
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Field Detail

GC_THRESHOLD_EXCEEDED_INITIAL_NOTIF_TYPE

static final String GC_THRESHOLD_EXCEEDED_INITIAL_NOTIF_TYPE
Type of notification produced when PercentTimeSpentInGCThreshold is initially exceeded

Supported API: true


GC_THRESHOLD_EXCEEDED_STILL_NOTIF_TYPE

static final String GC_THRESHOLD_EXCEEDED_STILL_NOTIF_TYPE
Type of notification produced when PercentTimeSpentInGCThreshold is still exceeded

Supported API: true


GC_THRESHOLD_EXCEEDED_NO_LONGER_NOTIF_TYPE

static final String GC_THRESHOLD_EXCEEDED_NO_LONGER_NOTIF_TYPE
Type of notification produced when PercentTimeSpentInGCThreshold is no longer exceeded

Supported API: true

Method Detail

getRecentPercentTimeSpentInGC

double getRecentPercentTimeSpentInGC()
Percentage of time spent performing garbage collection during recent time interval

Supported API: true


getRecentIntervalSeconds

int getRecentIntervalSeconds()
Duration of recent time interval in seconds

Supported API: true


setRecentIntervalSeconds

void setRecentIntervalSeconds(int recentIntervalSeconds)
Duration of recent time interval in seconds

Supported API: true


getPercentTimeSpentInGCThreshold

double getPercentTimeSpentInGCThreshold()
Threshold percentage of time spent in GC during an interval above which a notification will be issued

Supported API: true


setPercentTimeSpentInGCThreshold

void setPercentTimeSpentInGCThreshold(double percentTimeSpentInGCThreshold)
Threshold percentage of time spent in GC during an interval above which a notification will be issued

Supported API: true