MCPcopy Create free account
hub / github.com/e2wugui/zeze / isLeader

Method isLeader

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/Raft.java:162–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 public boolean isLeader() {
163 return state == RaftState.Leader;
164 }
165
166 public Server getServer() {
167 return server;

Callers 15

isWorkingLeaderMethod · 0.95
waitLeaderReadyMethod · 0.95
isReadyLeaderMethod · 0.95
setLeaderReadyMethod · 0.95
processGetLeaderMethod · 0.95
trySendMethod · 0.45
processLeaderIsMethod · 0.45
LogSequenceMethod · 0.45
saveLogMethod · 0.45
saveLogRawMethod · 0.45
tryApplyMethod · 0.45
sendHeartbeatToMethod · 0.45

Calls

no outgoing calls

Tested by 3

getLeaderMethod · 0.36
getNodeNotLeadersMethod · 0.36
processAddCountMethod · 0.36