Search in sources :

Example 1 with FRAG

use of org.jgroups.protocols.FRAG 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);
    }
}
Also used : FRAG2(org.jgroups.protocols.FRAG2) FRAG(org.jgroups.protocols.FRAG) Protocol(org.jgroups.stack.Protocol) TP(org.jgroups.protocols.TP)

Aggregations

FRAG (org.jgroups.protocols.FRAG)1 FRAG2 (org.jgroups.protocols.FRAG2)1 TP (org.jgroups.protocols.TP)1 Protocol (org.jgroups.stack.Protocol)1