public class GCInspector extends java.lang.Object implements javax.management.NotificationListener, GCInspectorMXBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MBEAN_NAME |
| Constructor and Description |
|---|
GCInspector() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getAndResetStats() |
long |
getGcLogThresholdInMs() |
long |
getGcWarnThresholdInMs() |
long |
getStatusThresholdInMs() |
org.apache.cassandra.service.GCInspector.State |
getTotalSinceLastCheck() |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback) |
static void |
register() |
void |
setGcLogThresholdInMs(long threshold) |
void |
setGcWarnThresholdInMs(long threshold) |
public static final java.lang.String MBEAN_NAME
public static void register()
throws java.lang.Exception
java.lang.Exceptionpublic void handleNotification(javax.management.Notification notification,
java.lang.Object handback)
handleNotification in interface javax.management.NotificationListenerpublic org.apache.cassandra.service.GCInspector.State getTotalSinceLastCheck()
public double[] getAndResetStats()
getAndResetStats in interface GCInspectorMXBeanpublic void setGcWarnThresholdInMs(long threshold)
setGcWarnThresholdInMs in interface GCInspectorMXBeanpublic long getGcWarnThresholdInMs()
getGcWarnThresholdInMs in interface GCInspectorMXBeanpublic void setGcLogThresholdInMs(long threshold)
setGcLogThresholdInMs in interface GCInspectorMXBeanpublic long getGcLogThresholdInMs()
getGcLogThresholdInMs in interface GCInspectorMXBeanpublic long getStatusThresholdInMs()
getStatusThresholdInMs in interface GCInspectorMXBeanCopyright © 2009-2022 The Apache Software Foundation