Examples of stable()


Examples of org.jgroups.stack.NakReceiverWindow.stable()

                tmp_seqno=Math.max(tmp_seqno - gc_lag, 0);
                if(tmp_seqno <= 0) {
                }
                else {
                    if(trace) log.trace("deleting messages < " + tmp_seqno + " from " + sender);
                    win.stable(tmp_seqno);
                }
            }
        }
    }
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

                continue;
            }

            if(trace) log.trace("(from " + local_addr +
                                               ") GC: deleting messages < " + tmp_seqno + " from " + sender);
            win.stable(tmp_seqno);
        }
    }


    /**
 
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

            }

            // delete *delivered* msgs that are stable
            // recv_win=(NakReceiverWindow)received_msgs.get(sender);
            if(recv_win != null)
                recv_win.stable(high_seqno_delivered)// delete all messages with seqnos <= seqno
        }
    }



View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        check(win, 0, 6, 0);
        win.add(5, new Message());
        check(win, 0, 6, 0);
        while(win.remove() != null) ;
        check(win, 0, 6, 6);
        win.stable(4);
        check(win, 4, 6, 6);
        win.stable(6);
        check(win, 6, 6, 6);
    }
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        check(win, 0, 6, 0);
        while(win.remove() != null) ;
        check(win, 0, 6, 6);
        win.stable(4);
        check(win, 4, 6, 6);
        win.stable(6);
        check(win, 6, 6, 6);
    }


    public void test9() throws Exception {
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        win.add(3, new Message());
        win.add(4, new Message());
        win.add(6, new Message());
        System.out.println("win: " + win);
        while((win.remove()) != null) ;
        win.stable(6); // 6 is ignore as it is >= highest delivered message
        System.out.println("win: " + win);
        assertNotNull(win.get(2));
        check(win, 0, 6, 4);
        win.add(5, new Message());
        check(win, 0, 6, 4);
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        check(win, 0, 6, 4);
        win.add(5, new Message());
        check(win, 0, 6, 4);
        while((win.remove()) != null) ;
        check(win, 0, 6, 6);
        win.stable(6);
        check(win, 6, 6, 6);
    }


    public void testHighestDelivered() throws Exception {
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        win.add(5, new Message());
        System.out.println("win: " + win);
        check(win, 0, 10, 0);
        while((win.remove()) != null) ;
        check(win, 0, 10, 10);
        win.stable(5);
        System.out.println("win: " + win);
        check(win, 5, 10, 10);
        win.stable(10);
        System.out.println("win: " + win);
        check(win, 10, 10, 10);
View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        while((win.remove()) != null) ;
        check(win, 0, 10, 10);
        win.stable(5);
        System.out.println("win: " + win);
        check(win, 5, 10, 10);
        win.stable(10);
        System.out.println("win: " + win);
        check(win, 10, 10, 10);
    }

View Full Code Here

Examples of org.jgroups.stack.NakReceiverWindow.stable()

        win.add(1, new Message());
        win.add(2, new Message());
        win.add(3, new Message());
        win.add(4, new Message());
        while((win.remove()) != null) ;
        win.stable(4);
        check(win, 4, 4, 4);

    }

    public void test11() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.