use of org.jgroups.protocols.FRAG2 in project JGroups by belaban.
the class RpcDispatcherTest method setProps.
protected static void setProps(JChannel... channels) {
for (JChannel ch : channels) {
Protocol prot = ch.getProtocolStack().findProtocol(FRAG2.class);
if (prot != null) {
((FRAG2) prot).setFragSize(12000);
}
prot = ch.getProtocolStack().findProtocol(FRAG.class);
if (prot != null) {
((FRAG) prot).setFragSize(12000);
}
prot = ch.getProtocolStack().getTransport();
if (prot != null)
((TP) prot).getBundler().setMaxSize(14000);
}
}