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

Method AddNode

ZezeJava/ZezeJavaTest/src/GlobalRaft/RaftConfig.java:257–260  ·  view source on GitHub ↗
(Node node)

Source from the content-addressed store, hash-verified

255 }
256
257 private void AddNode(Node node) {
258 if (Nodes.putIfAbsent(node.getName(), node) != null)
259 throw new IllegalStateException(String.format("duplicate node '%s'", node.getName()));
260 }
261
262 static final class Node {
263 private final String Host;

Callers 1

RaftConfigMethod · 0.95

Calls 3

formatMethod · 0.80
putIfAbsentMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected