public class GrpcServerMetrics extends org.apache.ratis.metrics.RatisMetrics
RATIS_APPLICATION_NAME_METRICS| 构造器和说明 |
|---|
GrpcServerMetrics(String serverId) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPendingRequestsCount(String follower,
Supplier<Integer> pendinglogQueueSize) |
org.apache.ratis.metrics.Timekeeper |
getGrpcLogAppenderLatencyTimer(String follower,
boolean isHeartbeat) |
void |
onInstallSnapshot() |
void |
onRequestCreate(boolean isHeartbeat) |
void |
onRequestInconsistency(String follower) |
void |
onRequestNotLeader(String follower) |
void |
onRequestRetry() |
void |
onRequestSuccess(String follower,
boolean isHeartbeat) |
void |
onRequestTimeout(String follower,
boolean isHeartbeat) |
create, getHeartbeatSuffix, getRegistry, newCounterMap, newCounterMaps, newHeartbeatCounter, newHeartbeatTimer, newTimerMap, unregisterpublic static final String RATIS_GRPC_METRICS_LOG_APPENDER_LATENCY
public static final String RATIS_GRPC_METRICS_LOG_APPENDER_SUCCESS
public static final String RATIS_GRPC_METRICS_LOG_APPENDER_NOT_LEADER
public static final String RATIS_GRPC_METRICS_LOG_APPENDER_INCONSISTENCY
public static final String RATIS_GRPC_METRICS_LOG_APPENDER_TIMEOUT
public static final String RATIS_GRPC_METRICS_LOG_APPENDER_PENDING_COUNT
public static final String RATIS_GRPC_METRICS_REQUEST_RETRY_COUNT
public static final String RATIS_GRPC_METRICS_REQUESTS_COUNT
public GrpcServerMetrics(String serverId)
public org.apache.ratis.metrics.Timekeeper getGrpcLogAppenderLatencyTimer(String follower, boolean isHeartbeat)
public void onRequestRetry()
public void onRequestCreate(boolean isHeartbeat)
public void onRequestSuccess(String follower, boolean isHeartbeat)
public void onRequestNotLeader(String follower)
public void onRequestInconsistency(String follower)
public void onRequestTimeout(String follower, boolean isHeartbeat)
public void addPendingRequestsCount(String follower, Supplier<Integer> pendinglogQueueSize)
public void onInstallSnapshot()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.