@InterfaceAudience.Private public class MetricsRegionWrapperImpl extends Object implements MetricsRegionWrapper, Closeable
Modifier and Type | Class and Description |
---|---|
class |
MetricsRegionWrapperImpl.HRegionMetricsWrapperRunnable |
Modifier and Type | Field and Description |
---|---|
private ScheduledExecutorService |
executor |
private long |
memstoreSize |
private long |
numStoreFiles |
static int |
PERIOD |
private HRegion |
region |
private ScheduledFuture<?> |
regionMetricsUpdateTask |
private Runnable |
runnable |
private long |
storeFileSize |
static String |
UNKNOWN |
Constructor and Description |
---|
MetricsRegionWrapperImpl(HRegion region) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getMemstoreSize()
Get the size of the memstore on this region server.
|
String |
getNamespace()
Get the name of the namespace this table is in.
|
long |
getNumBytesCompacted() |
long |
getNumCompactionsCompleted() |
long |
getNumFilesCompacted() |
long |
getNumStoreFiles()
Get the number of store files hosted on this region server.
|
long |
getNumStores()
Get the number of stores hosted on this region server.
|
long |
getReadRequestCount()
Get the total number of read requests that have been issued against this region
|
int |
getRegionHashCode() |
String |
getRegionName()
Get the name of the region.
|
int |
getReplicaId()
Get the replica id of this region.
|
long |
getStoreFileSize()
Get the total size of the store files this region server is serving from.
|
String |
getTableName()
Get the name of the table the region belongs to.
|
long |
getWriteRequestCount()
Get the total number of mutations that have been issued against this region.
|
public static final int PERIOD
public static final String UNKNOWN
private final HRegion region
private ScheduledExecutorService executor
private Runnable runnable
private long numStoreFiles
private long memstoreSize
private long storeFileSize
private ScheduledFuture<?> regionMetricsUpdateTask
public MetricsRegionWrapperImpl(HRegion region)
public String getTableName()
MetricsRegionWrapper
getTableName
in interface MetricsRegionWrapper
public String getNamespace()
MetricsRegionWrapper
getNamespace
in interface MetricsRegionWrapper
public String getRegionName()
MetricsRegionWrapper
getRegionName
in interface MetricsRegionWrapper
public long getNumStores()
MetricsRegionWrapper
getNumStores
in interface MetricsRegionWrapper
public long getNumStoreFiles()
MetricsRegionWrapper
getNumStoreFiles
in interface MetricsRegionWrapper
public long getMemstoreSize()
MetricsRegionWrapper
getMemstoreSize
in interface MetricsRegionWrapper
public long getStoreFileSize()
MetricsRegionWrapper
getStoreFileSize
in interface MetricsRegionWrapper
public long getReadRequestCount()
MetricsRegionWrapper
getReadRequestCount
in interface MetricsRegionWrapper
public long getWriteRequestCount()
MetricsRegionWrapper
getWriteRequestCount
in interface MetricsRegionWrapper
public long getNumFilesCompacted()
getNumFilesCompacted
in interface MetricsRegionWrapper
public long getNumBytesCompacted()
getNumBytesCompacted
in interface MetricsRegionWrapper
public long getNumCompactionsCompleted()
getNumCompactionsCompleted
in interface MetricsRegionWrapper
public int getRegionHashCode()
getRegionHashCode
in interface MetricsRegionWrapper
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int getReplicaId()
getReplicaId
in interface MetricsRegionWrapper
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.