Skip to content

Commit dffe986

Browse files
committed
ns
1 parent 3434814 commit dffe986

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/org/jgroups/util/Util.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,23 @@ public static Protocol[] getTestStack(Protocol... additional_protocols) {
257257
return tmp;
258258
}
259259

260+
public static Protocol[] getTestStackNew(Protocol... additional_protocols) {
261+
Protocol[] protocols={
262+
new SHARED_LOOPBACK(),
263+
new SHARED_LOOPBACK_PING(),
264+
new NAKACK4(),
265+
new UNICAST4(),
266+
new STABLE(),
267+
new GMS().setJoinTimeout(500),
268+
new FRAG2().setFragSize(8000)
269+
};
270+
271+
if(additional_protocols == null)
272+
return protocols;
273+
Protocol[] tmp=Arrays.copyOf(protocols,protocols.length + additional_protocols.length);
274+
System.arraycopy(additional_protocols, 0, tmp, protocols.length, additional_protocols.length);
275+
return tmp;
276+
}
260277

261278
/**
262279
* Blocks until all channels have the same view

0 commit comments

Comments
 (0)