Package org.apache.cassandra.service
Class GCInspector
- java.lang.Object
-
- org.apache.cassandra.service.GCInspector
-
- All Implemented Interfaces:
java.util.EventListener,javax.management.NotificationListener,GCInspectorMXBean
public class GCInspector extends java.lang.Object implements javax.management.NotificationListener, GCInspectorMXBean
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMBEAN_NAME
-
Constructor Summary
Constructors Constructor Description GCInspector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getAndResetStats()longgetGcLogThresholdInMs()longgetGcWarnThresholdInMs()longgetStatusThresholdInMs()org.apache.cassandra.service.GCInspector.StategetTotalSinceLastCheck()voidhandleNotification(javax.management.Notification notification, java.lang.Object handback)static voidregister()voidsetGcLogThresholdInMs(long threshold)voidsetGcWarnThresholdInMs(long threshold)
-
-
-
Field Detail
-
MBEAN_NAME
public static final java.lang.String MBEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
register
public static void register() throws java.lang.Exception- Throws:
java.lang.Exception
-
handleNotification
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)- Specified by:
handleNotificationin interfacejavax.management.NotificationListener
-
getTotalSinceLastCheck
public org.apache.cassandra.service.GCInspector.State getTotalSinceLastCheck()
-
getAndResetStats
public double[] getAndResetStats()
- Specified by:
getAndResetStatsin interfaceGCInspectorMXBean
-
setGcWarnThresholdInMs
public void setGcWarnThresholdInMs(long threshold)
- Specified by:
setGcWarnThresholdInMsin interfaceGCInspectorMXBean
-
getGcWarnThresholdInMs
public long getGcWarnThresholdInMs()
- Specified by:
getGcWarnThresholdInMsin interfaceGCInspectorMXBean
-
setGcLogThresholdInMs
public void setGcLogThresholdInMs(long threshold)
- Specified by:
setGcLogThresholdInMsin interfaceGCInspectorMXBean
-
getGcLogThresholdInMs
public long getGcLogThresholdInMs()
- Specified by:
getGcLogThresholdInMsin interfaceGCInspectorMXBean
-
getStatusThresholdInMs
public long getStatusThresholdInMs()
- Specified by:
getStatusThresholdInMsin interfaceGCInspectorMXBean
-
-