public class MessageMetrics extends org.apache.ratis.metrics.RatisMetrics
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GRPC_MESSAGE_METRICS |
static String |
GRPC_MESSAGE_METRICS_DESC |
RATIS_APPLICATION_NAME_METRICS| 构造器和说明 |
|---|
MessageMetrics(String endpointId,
String endpointType) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
rpcCompleted(String metricNamePrefix)
Increments the count of RPCs that were started and got completed.
|
void |
rpcReceived(String metricNamePrefix)
Increments the count of RPCs received on the server.
|
void |
rpcStarted(String metricNamePrefix)
Increments the count of RPCs that are started.
|
create, getHeartbeatSuffix, getRegistry, newCounterMap, newCounterMaps, newHeartbeatCounter, newHeartbeatTimer, newTimerMap, unregisterpublic void rpcStarted(String metricNamePrefix)
public void rpcCompleted(String metricNamePrefix)
public void rpcReceived(String metricNamePrefix)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.