Package org.jgroups.protocols

Examples of org.jgroups.protocols.VIEW_SYNC


        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        bottom_prot=new PING();
        VIEW_SYNC view_sync=new VIEW_SYNC();
        Protocol[] stack=new Protocol[]{view_sync, barrier_prot, bottom_prot};
        s.setProtocolStack(stack);
        s.start();
    }
View Full Code Here


        MERGE2 merge=(MERGE2)stack.findProtocol("MERGE2");
        if(merge != null) {
            merge.setMinInterval(2000);
            merge.setMaxInterval(5000);
        }
        VIEW_SYNC sync=(VIEW_SYNC)stack.findProtocol(VIEW_SYNC.class);
        if(sync != null)
            sync.setAverageSendInterval(5000);
        NAKACK nakack=(NAKACK)stack.findProtocol(NAKACK.class);
        if(nakack != null)
            nakack.setLogDiscardMsgs(false);
    }
View Full Code Here

        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        bottom_prot=new PING();
        Protocol[] stack=new Protocol[]{new VIEW_SYNC(), barrier_prot, bottom_prot};
        s.setProtocolStack(stack);
        s.start();
    }
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.VIEW_SYNC

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.