From dffe98685c0740e2aea2b9b09c2d5ee99e424d00 Mon Sep 17 00:00:00 2001 From: Bela Ban Date: Mon, 25 Nov 2024 17:50:25 +0100 Subject: [PATCH] ns --- src/org/jgroups/util/Util.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/org/jgroups/util/Util.java b/src/org/jgroups/util/Util.java index 1704f709e0..1ae4c7d8b9 100644 --- a/src/org/jgroups/util/Util.java +++ b/src/org/jgroups/util/Util.java @@ -257,6 +257,23 @@ public static Protocol[] getTestStack(Protocol... additional_protocols) { return tmp; } + public static Protocol[] getTestStackNew(Protocol... additional_protocols) { + Protocol[] protocols={ + new SHARED_LOOPBACK(), + new SHARED_LOOPBACK_PING(), + new NAKACK4(), + new UNICAST4(), + new STABLE(), + new GMS().setJoinTimeout(500), + new FRAG2().setFragSize(8000) + }; + + if(additional_protocols == null) + return protocols; + Protocol[] tmp=Arrays.copyOf(protocols,protocols.length + additional_protocols.length); + System.arraycopy(additional_protocols, 0, tmp, protocols.length, additional_protocols.length); + return tmp; + } /** * Blocks until all channels have the same view