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 int |
versionNumber |
Constructor and Description |
---|
ServerMetricsImpl(ServerName serverName,
int versionNumber,
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() |
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, 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 ServerMetrics
public int getVersionNumber()
getVersionNumber
in interface ServerMetrics
public long getRequestCountPerSecond()
getRequestCountPerSecond
in interface ServerMetrics
public long getRequestCount()
getRequestCount
in interface ServerMetrics
public Size getUsedHeapSize()
getUsedHeapSize
in interface ServerMetrics
public Size getMaxHeapSize()
getMaxHeapSize
in interface ServerMetrics
public int getInfoServerPort()
getInfoServerPort
in interface ServerMetrics
public List<ReplicationLoadSource> getReplicationLoadSourceList()
ServerMetrics
getReplicationLoadSourceList
in interface ServerMetrics
public ReplicationLoadSink getReplicationLoadSink()
ServerMetrics
getReplicationLoadSink
in interface ServerMetrics
public Map<byte[],RegionMetrics> getRegionMetrics()
getRegionMetrics
in interface ServerMetrics
public Set<String> getCoprocessorNames()
ServerMetrics
getCoprocessorNames
in interface ServerMetrics
public long getReportTimestamp()
getReportTimestamp
in interface ServerMetrics
public long getLastReportTimestamp()
getLastReportTimestamp
in interface ServerMetrics
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.