@InterfaceStability.Evolving @InterfaceAudience.Private public class MetricsRegionServer extends Object
Modifier and Type | Field and Description |
---|---|
private Timer |
bulkLoadTimer |
protected static int |
DEFAULT_SLOW_METRIC_TIME |
private MetricRegistry |
metricRegistry |
private MetricsTable |
metricsTable |
private MetricsRegionServerQuotaSource |
quotaSource |
private MetricsRegionServerWrapper |
regionServerWrapper |
static String |
RS_ENABLE_SERVER_QUERY_METER_METRICS_KEY |
static boolean |
RS_ENABLE_SERVER_QUERY_METER_METRICS_KEY_DEFAULT |
static boolean |
RS_ENABLE_TABLE_METRICS_DEFAULT |
static String |
RS_ENABLE_TABLE_METRICS_KEY |
static String |
RS_ENABLE_TABLE_QUERY_METER_METRICS_KEY |
static boolean |
RS_ENABLE_TABLE_QUERY_METER_METRICS_KEY_DEFAULT |
private Meter |
serverReadQueryMeter |
private MetricsRegionServerSource |
serverSource |
private Meter |
serverWriteQueryMeter |
static String |
SLOW_METRIC_TIME |
protected long |
slowMetricTime |
private RegionServerTableMetrics |
tableMetrics |
private MetricsUserAggregate |
userAggregate |
Constructor and Description |
---|
MetricsRegionServer(MetricsRegionServerWrapper regionServerWrapper,
org.apache.hadoop.conf.Configuration conf,
MetricsTable metricsTable) |
MetricsRegionServer(MetricsRegionServerWrapper regionServerWrapper,
MetricsRegionServerSource serverSource,
RegionServerTableMetrics tableMetrics,
MetricsTable metricsTable,
MetricsUserAggregate userAggregate) |
public static final String RS_ENABLE_TABLE_METRICS_KEY
public static final boolean RS_ENABLE_TABLE_METRICS_DEFAULT
public static final String RS_ENABLE_SERVER_QUERY_METER_METRICS_KEY
public static final boolean RS_ENABLE_SERVER_QUERY_METER_METRICS_KEY_DEFAULT
public static final String RS_ENABLE_TABLE_QUERY_METER_METRICS_KEY
public static final boolean RS_ENABLE_TABLE_QUERY_METER_METRICS_KEY_DEFAULT
public static final String SLOW_METRIC_TIME
private final MetricsRegionServerSource serverSource
private final MetricsRegionServerWrapper regionServerWrapper
private RegionServerTableMetrics tableMetrics
private final MetricsTable metricsTable
private final MetricsUserAggregate userAggregate
private MetricsRegionServerQuotaSource quotaSource
private MetricRegistry metricRegistry
private Timer bulkLoadTimer
private Meter serverReadQueryMeter
private Meter serverWriteQueryMeter
protected long slowMetricTime
protected static final int DEFAULT_SLOW_METRIC_TIME
public MetricsRegionServer(MetricsRegionServerWrapper regionServerWrapper, org.apache.hadoop.conf.Configuration conf, MetricsTable metricsTable)
MetricsRegionServer(MetricsRegionServerWrapper regionServerWrapper, MetricsRegionServerSource serverSource, RegionServerTableMetrics tableMetrics, MetricsTable metricsTable, MetricsUserAggregate userAggregate)
static RegionServerTableMetrics createTableMetrics(org.apache.hadoop.conf.Configuration conf)
RegionServerTableMetrics
only if the feature is enabled.public MetricsRegionServerSource getMetricsSource()
public MetricsUserAggregate getMetricsUserAggregate()
public MetricsRegionServerWrapper getRegionServerWrapper()
public void updatePutBatch(TableName tn, long t)
public void updateDelete(TableName tn, long t)
public void updateDeleteBatch(TableName tn, long t)
public void updateCheckAndDelete(TableName tn, long t)
public void updateCheckAndPut(TableName tn, long t)
public void updateCheckAndMutate(TableName tn, long t)
public void updateIncrement(TableName tn, long t)
public void updateAppend(TableName tn, long t)
public void updateReplay(long t)
public void updateScanSize(TableName tn, long scanSize)
public void updateScanTime(TableName tn, long t)
public void updateSplitTime(long t)
public void incrSplitRequest()
public void incrSplitSuccess()
public void updateFlush(String table, long t, long memstoreSize, long fileSize)
public void updateCompaction(String table, boolean isMajor, long t, int inputFileCount, int outputFileCount, long inputBytes, long outputBytes)
public void updateBulkLoad(long millis)
public void updateReadQueryMeter(TableName tn, long count)
public void updateWriteQueryMeter(TableName tn, long count)
public void updateWriteQueryMeter(TableName tn)
public void incrementNumRegionSizeReportsSent(long numReportsSent)
public void incrementRegionSizeReportingChoreTime(long time)
public void incrScannerLeaseExpired()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.