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.String
MBEAN_NAME
-
Constructor Summary
Constructors Constructor Description GCInspector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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:
handleNotification
in interfacejavax.management.NotificationListener
-
getTotalSinceLastCheck
public org.apache.cassandra.service.GCInspector.State getTotalSinceLastCheck()
-
getAndResetStats
public double[] getAndResetStats()
- Specified by:
getAndResetStats
in interfaceGCInspectorMXBean
-
setGcWarnThresholdInMs
public void setGcWarnThresholdInMs(long threshold)
- Specified by:
setGcWarnThresholdInMs
in interfaceGCInspectorMXBean
-
getGcWarnThresholdInMs
public long getGcWarnThresholdInMs()
- Specified by:
getGcWarnThresholdInMs
in interfaceGCInspectorMXBean
-
setGcLogThresholdInMs
public void setGcLogThresholdInMs(long threshold)
- Specified by:
setGcLogThresholdInMs
in interfaceGCInspectorMXBean
-
getGcLogThresholdInMs
public long getGcLogThresholdInMs()
- Specified by:
getGcLogThresholdInMs
in interfaceGCInspectorMXBean
-
getStatusThresholdInMs
public long getStatusThresholdInMs()
- Specified by:
getStatusThresholdInMs
in interfaceGCInspectorMXBean
-
-