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

Method stopStack

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

Iterates through all the protocols from top to bottom and does the following: Waits until all messages in the down queue have been flushed (ie., size is 0) Calls stop() on the protocol

(String cluster)

Source from the content-addressed store, hash-verified

933 * </ol>
934 */
935 public void stopStack(String cluster) {
936 if(stopped) return;
937 getProtocols().forEach(Protocol::stop);
938 TP transport=getTransport();
939 transport.unregisterProbeHandler(props_handler);
940 stopped=true;
941 }
942
943
944

Callers 5

exitMethod · 0.95
tearDownMethod · 0.95
tearDownMethod · 0.95
tearDownMethod · 0.95
tearDownMethod · 0.95

Calls 4

getProtocolsMethod · 0.95
getTransportMethod · 0.95
forEachMethod · 0.45

Tested by 5

exitMethod · 0.76
tearDownMethod · 0.76
tearDownMethod · 0.76
tearDownMethod · 0.76
tearDownMethod · 0.76