@InterfaceAudience.Private public class JvmPauseMonitor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INFO_THRESHOLD_KEY |
static String |
WARN_THRESHOLD_KEY |
Constructor and Description |
---|
JvmPauseMonitor(org.apache.hadoop.conf.Configuration conf) |
JvmPauseMonitor(org.apache.hadoop.conf.Configuration conf,
JvmPauseMonitorSource metricsSource) |
Modifier and Type | Method and Description |
---|---|
JvmPauseMonitorSource |
getMetricsSource() |
static void |
main(String[] args)
Simple 'main' to facilitate manual testing of the pause monitor.
|
void |
setMetricsSource(JvmPauseMonitorSource metricsSource) |
void |
start() |
void |
stop() |
void |
updateMetrics(long sleepTime,
boolean gcDetected) |
public static final String WARN_THRESHOLD_KEY
public static final String INFO_THRESHOLD_KEY
public JvmPauseMonitor(org.apache.hadoop.conf.Configuration conf)
public JvmPauseMonitor(org.apache.hadoop.conf.Configuration conf, JvmPauseMonitorSource metricsSource)
public void start()
public void stop()
public void updateMetrics(long sleepTime, boolean gcDetected)
public JvmPauseMonitorSource getMetricsSource()
public void setMetricsSource(JvmPauseMonitorSource metricsSource)
public static void main(String[] args) throws Exception
Exception
Copyright © 2007–2019 Cloudera. All rights reserved.