public final class LeaderElectionMetrics extends RatisMetrics
| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_LEADER_ELAPSED_TIME |
static String |
LEADER_ELECTION_COUNT_METRIC |
static String |
LEADER_ELECTION_LATENCY |
static String |
LEADER_ELECTION_TIMEOUT_COUNT_METRIC |
static String |
RATIS_LEADER_ELECTION_METRICS |
static String |
RATIS_LEADER_ELECTION_METRICS_DESC |
RATIS_APPLICATION_NAME_METRICS, registry| Modifier and Type | Method and Description |
|---|---|
static LeaderElectionMetrics |
getLeaderElectionMetrics(RaftServerImpl raftServer) |
void |
onLeaderElectionCompletion(long elapsedTime) |
void |
onLeaderElectionTimeout() |
void |
onNewLeaderElection() |
create, getRegistry, unregisterpublic static final String RATIS_LEADER_ELECTION_METRICS
public static final String RATIS_LEADER_ELECTION_METRICS_DESC
public static final String LEADER_ELECTION_COUNT_METRIC
public static final String LEADER_ELECTION_TIMEOUT_COUNT_METRIC
public static final String LEADER_ELECTION_LATENCY
public static final String LAST_LEADER_ELAPSED_TIME
public static LeaderElectionMetrics getLeaderElectionMetrics(RaftServerImpl raftServer)
public void onNewLeaderElection()
public void onLeaderElectionCompletion(long elapsedTime)
public void onLeaderElectionTimeout()
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.