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 List<ServerTask> |
tasks |
private Size |
usedHeapSize |
private Map<byte[],UserMetrics> |
userMetrics |
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,
Map<byte[],UserMetrics> userMetrics,
List<ServerTask> tasks) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getCoprocessorNames()
Return the RegionServer-level and Region-level coprocessors
|
int |
getInfoServerPort() |
long |
getLastReportTimestamp()
Returns the last timestamp (server side) of generating this metrics
|
Size |
getMaxHeapSize()
Returns the maximum allowable size of the heap
|
Map<byte[],RegionMetrics> |
getRegionMetrics()
Returns region load metrics
|
ReplicationLoadSink |
getReplicationLoadSink()
Call directly from client such as hbase shell n
|
List<ReplicationLoadSource> |
getReplicationLoadSourceList()
Call directly from client such as hbase shell
|
Map<String,List<ReplicationLoadSource>> |
getReplicationLoadSourceMap()
Call directly from client such as hbase shell
|
long |
getReportTimestamp()
Returns the timestamp (server side) of generating this metrics
|
long |
getRequestCount()
Returns total Number of requests from the start of the region server.
|
long |
getRequestCountPerSecond()
Returns the number of requests per second.
|
ServerName |
getServerName() |
List<ServerTask> |
getTasks()
Called directly from clients such as the hbase shell
|
Size |
getUsedHeapSize()
Returns the amount of used heap
|
Map<byte[],UserMetrics> |
getUserMetrics()
Returns metrics per user
|
String |
getVersion()
Returns the string type version of a regionserver.
|
int |
getVersionNumber()
Returns the version number of a regionserver.
|
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
private final Map<byte[],UserMetrics> userMetrics
private final List<ServerTask> tasks
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, Map<byte[],UserMetrics> userMetrics, List<ServerTask> tasks)
public ServerName getServerName()
getServerName
in interface ServerMetrics
public int getVersionNumber()
ServerMetrics
getVersionNumber
in interface ServerMetrics
public String getVersion()
ServerMetrics
getVersion
in interface ServerMetrics
public long getRequestCountPerSecond()
ServerMetrics
getRequestCountPerSecond
in interface ServerMetrics
public long getRequestCount()
ServerMetrics
getRequestCount
in interface ServerMetrics
public Size getUsedHeapSize()
ServerMetrics
getUsedHeapSize
in interface ServerMetrics
public Size getMaxHeapSize()
ServerMetrics
getMaxHeapSize
in interface ServerMetrics
public int getInfoServerPort()
getInfoServerPort
in interface ServerMetrics
public List<ReplicationLoadSource> getReplicationLoadSourceList()
ServerMetrics
getReplicationLoadSourceList
in interface ServerMetrics
public Map<String,List<ReplicationLoadSource>> getReplicationLoadSourceMap()
ServerMetrics
getReplicationLoadSourceMap
in interface ServerMetrics
public ReplicationLoadSink getReplicationLoadSink()
ServerMetrics
getReplicationLoadSink
in interface ServerMetrics
public Map<byte[],RegionMetrics> getRegionMetrics()
ServerMetrics
getRegionMetrics
in interface ServerMetrics
public Map<byte[],UserMetrics> getUserMetrics()
ServerMetrics
getUserMetrics
in interface ServerMetrics
public Set<String> getCoprocessorNames()
ServerMetrics
getCoprocessorNames
in interface ServerMetrics
public long getReportTimestamp()
ServerMetrics
getReportTimestamp
in interface ServerMetrics
public long getLastReportTimestamp()
ServerMetrics
getLastReportTimestamp
in interface ServerMetrics
public List<ServerTask> getTasks()
ServerMetrics
getTasks
in interface ServerMetrics
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.