private static class ServerMetricsBuilder.ServerMetricsImpl extends Object implements ServerMetrics
| Modifier and Type | Field and Description |
|---|---|
private Set<String> |
coprocessorNames |
private int |
infoServerPort |
private long |
lastReportTimestamp |
private Size |
maxHeapSize |
private Map<byte[],RegionMetrics> |
regionStatus |
private long |
reportTimestamp |
private long |
requestCount |
private long |
requestCountPerSecond |
private ServerName |
serverName |
private ReplicationLoadSink |
sink |
private List<ReplicationLoadSource> |
sources |
private Size |
usedHeapSize |
private String |
version |
private int |
versionNumber |
| Constructor and Description |
|---|
ServerMetricsImpl(ServerName serverName,
int versionNumber,
String version,
long requestCountPerSecond,
long requestCount,
Size usedHeapSize,
Size maxHeapSize,
int infoServerPort,
List<ReplicationLoadSource> sources,
ReplicationLoadSink sink,
Map<byte[],RegionMetrics> regionStatus,
Set<String> coprocessorNames,
long reportTimestamp,
long lastReportTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getCoprocessorNames()
Return the RegionServer-level and Region-level coprocessors
|
int |
getInfoServerPort() |
long |
getLastReportTimestamp() |
Size |
getMaxHeapSize() |
Map<byte[],RegionMetrics> |
getRegionMetrics() |
ReplicationLoadSink |
getReplicationLoadSink()
Call directly from client such as hbase shell
|
List<ReplicationLoadSource> |
getReplicationLoadSourceList()
Call directly from client such as hbase shell
|
long |
getReportTimestamp() |
long |
getRequestCount() |
long |
getRequestCountPerSecond() |
ServerName |
getServerName() |
Size |
getUsedHeapSize() |
String |
getVersion() |
int |
getVersionNumber() |
String |
toString() |
private final ServerName serverName
private final int versionNumber
private final long requestCountPerSecond
private final long requestCount
private final Size usedHeapSize
private final Size maxHeapSize
private final int infoServerPort
private final List<ReplicationLoadSource> sources
@Nullable private final ReplicationLoadSink sink
private final Map<byte[],RegionMetrics> regionStatus
private final Set<String> coprocessorNames
private final long reportTimestamp
private final long lastReportTimestamp
ServerMetricsImpl(ServerName serverName, int versionNumber, String version, long requestCountPerSecond, long requestCount, Size usedHeapSize, Size maxHeapSize, int infoServerPort, List<ReplicationLoadSource> sources, ReplicationLoadSink sink, Map<byte[],RegionMetrics> regionStatus, Set<String> coprocessorNames, long reportTimestamp, long lastReportTimestamp)
public ServerName getServerName()
getServerName in interface ServerMetricspublic int getVersionNumber()
getVersionNumber in interface ServerMetricspublic String getVersion()
getVersion in interface ServerMetricspublic long getRequestCountPerSecond()
getRequestCountPerSecond in interface ServerMetricspublic long getRequestCount()
getRequestCount in interface ServerMetricspublic Size getUsedHeapSize()
getUsedHeapSize in interface ServerMetricspublic Size getMaxHeapSize()
getMaxHeapSize in interface ServerMetricspublic int getInfoServerPort()
getInfoServerPort in interface ServerMetricspublic List<ReplicationLoadSource> getReplicationLoadSourceList()
ServerMetricsgetReplicationLoadSourceList in interface ServerMetricspublic ReplicationLoadSink getReplicationLoadSink()
ServerMetricsgetReplicationLoadSink in interface ServerMetricspublic Map<byte[],RegionMetrics> getRegionMetrics()
getRegionMetrics in interface ServerMetricspublic Set<String> getCoprocessorNames()
ServerMetricsgetCoprocessorNames in interface ServerMetricspublic long getReportTimestamp()
getReportTimestamp in interface ServerMetricspublic long getLastReportTimestamp()
getLastReportTimestamp in interface ServerMetricsCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.