Package org.jgroups.util

Examples of org.jgroups.util.TimeScheduler$Loop


     * transport and then invoke the method on it
     * @return
     */
    public String dumpTimerQueue() {
        TP transport=getTransport();
        TimeScheduler timer;
        if(transport != null) {
            timer=transport.getTimer();
            if(timer != null)
                return timer.dumpTaskQueue();
        }
        return "";
    }
View Full Code Here



    class ProtocolAdapter extends TP {

        ProtocolAdapter() {
            timer=new TimeScheduler();
        }
View Full Code Here



    protected void setUp() throws Exception {
        super.setUp();
        timer=new TimeScheduler(10);
        win=new AckSenderWindow(null, new StaticInterval(xmit_timeouts), timer);
    }
View Full Code Here

            public String getName() {return "blo";}
            public String getInfo() {return null;}
            public void postUnmarshalling(Message msg, Address dest, Address src, boolean multicast) {}
            public void postUnmarshallingList(Message msg, Address dest, boolean multicast) {}
            public Object down(Event evt) {return null;}
            public TimeScheduler getTimer() {return new TimeScheduler(1);}
            public void sendToAllMembers(byte[] data, int offset, int length) throws Exception {}
            public void sendToSingleMember(Address dest, byte[] data, int offset, int length) throws Exception {}
        });

        nak.setUpProtocol(new Protocol() {
View Full Code Here

    protected TimeScheduler timer=null;


    protected void setUp() throws Exception {
        super.setUp();
        timer=new TimeScheduler(10);
    }
View Full Code Here


  class ProtocolAdapter extends TP {

    ProtocolAdapter() {
      timer=new TimeScheduler();
    }
View Full Code Here

     * Create a new Retransmitter associated with the given sender address
     * @param sender the address from which retransmissions are expected or to which retransmissions are sent
     * @param cmd the retransmission callback reference
     */
    public Retransmitter(Address sender, RetransmitCommand cmd) {
        init(sender, cmd, new TimeScheduler(), true);
    }
View Full Code Here

     * retransmission attempts
     *
     * @throws IllegalArgumentException if <code>cmd</code> is null
     */
    public AckMcastSenderWindow(RetransmitCommand cmd, long[] retransmit_intervals) {
  init(cmd, retransmit_intervals, new TimeScheduler(), true);
    }
View Full Code Here

    }


    public void setup() throws Exception {
        if(timer == null) {
            timer=new TimeScheduler();
            timer.start();
        }
        if(top_prot == null) {
            top_prot=conf.setupProtocolStack(setup_string, this);
            if(top_prot == null)
View Full Code Here

     * i. Set the gossip task scheduler
     * ii. Reset the layer's state.
     * iii. Start the gossiping task
     */
    public void start() throws Exception {
        TimeScheduler timer;

        super.start();
        timer=stack != null ? stack.timer : null;
        if(timer == null)
            throw new Exception("STABLE.start(): timer is null");
View Full Code Here

TOP

Related Classes of org.jgroups.util.TimeScheduler$Loop

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.