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

Method findProtocol

src/org/jgroups/stack/ProtocolStack.java:670–680  ·  view source on GitHub ↗

Returns a given protocol or null if not found

(String name)

Source from the content-addressed store, hash-verified

668
669 /** Returns a given protocol or null if not found */
670 public <T extends Protocol> T findProtocol(String name) {
671 T tmp=(T)top_prot;
672 String prot_name;
673 while(tmp != null) {
674 prot_name=tmp.getName();
675 if(Objects.equals(prot_name, name))
676 return tmp;
677 tmp=tmp.getDownProtocol();
678 }
679 return null;
680 }
681
682 public <T extends Protocol> List<T> findProtocols(String regexp) {
683 List<T> retval=null;

Callers 15

handleProbeMethod · 0.95
dumpStatsMethod · 0.95
insertProtocolMethod · 0.95
insertProtocolAtTopMethod · 0.95
removeProtocolMethod · 0.95
getFORKMethod · 0.95
mainMethod · 0.95
initMethod · 0.95
initMethod · 0.95
initMethod · 0.95

Calls 6

getDownProtocolMethod · 0.95
getUpProtocolMethod · 0.95
isAssignableFromMethod · 0.80
getNameMethod · 0.65
equalsMethod · 0.45
testMethod · 0.45

Tested by 15

modifyStackMethod · 0.76
createChannelsMethod · 0.76
setBundlingMethod · 0.76
modifyStackMethod · 0.76
createChannelsMethod · 0.76