MCPcopy Create free account
hub / github.com/belaban/JGroups / dumpStats

Method dumpStats

src/org/jgroups/stack/ProtocolStack.java:223–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221
222
223 public Map<String,Map<String,Object>> dumpStats() {
224 Map<String,Map<String,Object>> retval=new HashMap<>(); // no need to be sorted, we need order of protocols as in the config!
225 for(Protocol p=top_prot; p != null; p=p.getDownProtocol()) {
226 String prot_name=p.getName();
227 if(prot_name == null)
228 continue;
229 Map<String,Object> tmp=new TreeMap<>();
230 ReflectUtils.dumpStats(p, tmp);
231 if(!tmp.isEmpty())
232 retval.put(prot_name, tmp);
233 }
234 return retval;
235 }
236
237
238 public Map<String,Map<String,Object>> dumpStats(final String protocol_name, List<String> attrs) {

Callers

nothing calls this directly

Calls 15

getDownProtocolMethod · 0.95
getNameMethod · 0.95
dumpStatsMethod · 0.95
loadProtocolClassMethod · 0.95
findProtocolMethod · 0.95
findProtocolsMethod · 0.95
getIdMethod · 0.95
isEmptyMethod · 0.45
putMethod · 0.45
iteratorMethod · 0.45
keySetMethod · 0.45
hasNextMethod · 0.45

Tested by

no test coverage detected