Examples of reset()


Examples of org.jgroups.stack.DefaultRetransmitter.reset()

        Retransmitter old_retransmitter=new DefaultRetransmitter(sender, new MyXmitter(), timer);

        range_based_retransmitter.setRetransmitTimeouts(new ExponentialInterval(1000));
        range_based_retransmitter.reset();
        old_retransmitter.setRetransmitTimeouts(new ExponentialInterval(1000));
        old_retransmitter.reset();

        return new Retransmitter[][] {
          {old_retransmitter},
          {range_based_retransmitter}
        };
View Full Code Here

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

        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.reset();
        assertTrue(win.getLowestSeen() == 0);
        assertTrue(win.getHighestSeen() == 0);
    }

View Full Code Here

Examples of org.jgroups.stack.RangeBasedRetransmitter.reset()

    protected Retransmitter[][] createRetransmitter() {
        Retransmitter range_based_retransmitter=new RangeBasedRetransmitter(sender, new MyXmitter(), timer);
        Retransmitter old_retransmitter=new DefaultRetransmitter(sender, new MyXmitter(), timer);

        range_based_retransmitter.setRetransmitTimeouts(new ExponentialInterval(1000));
        range_based_retransmitter.reset();
        old_retransmitter.setRetransmitTimeouts(new ExponentialInterval(1000));
        old_retransmitter.reset();

        return new Retransmitter[][] {
          {old_retransmitter},
View Full Code Here

Examples of org.jgroups.stack.Retransmitter.reset()

        Retransmitter old_retransmitter=new DefaultRetransmitter(sender, new MyXmitter(), timer);

        range_based_retransmitter.setRetransmitTimeouts(new ExponentialInterval(1000));
        range_based_retransmitter.reset();
        old_retransmitter.setRetransmitTimeouts(new ExponentialInterval(1000));
        old_retransmitter.reset();

        return new Retransmitter[][] {
          {old_retransmitter},
          {range_based_retransmitter}
        };
View Full Code Here

Examples of org.jgroups.util.AckCollector.reset()

        final List new_list=Arrays.asList("six", "seven", "eight");
        new Thread() {
            public void run() {
                Util.sleep(500);
                System.out.println("resetting AckCollector");
                ac.reset(new_list);
                System.out.println("reset AckCollector: " + ac);
            }
        }.start();
        System.out.println("initial AckCollector: " + ac);
        ac.waitForAllAcks(1000);
View Full Code Here

Examples of org.jgroups.util.ExposedByteArrayOutputStream.reset()

            DataOutputStream out;

            start=System.currentTimeMillis();
            for(int i=0; i < num_msgs; i++) {
                // buf=Util.objectToByteBuffer(new Integer(i));
                output.reset();
                out=new DataOutputStream(output);
                out.writeInt(i);
                out.flush();
                buf=output.getRawBuffer();
                out.close();
View Full Code Here

Examples of org.jitterbit.integration.client.project.ProjectUiState.reset()

        this.project = project;
    }

    public void saveState(ProjectContentViewer contentViewer, EditorService editorService) {
        ProjectUiState state = project.getUiState();
        state.reset();
        processDisplayedEntities(state, editorService);
        processExpandedNodes(state, contentViewer);
        saveStateToDisk();
    }
View Full Code Here

Examples of org.jitterbit.integration.debug.client.de.DataElementMap.reset()

    }

    public void resetDataElements() {
        synchronized (lock) {
            DataElementMap des = new DataElementMap(dataElements.get());
            des.reset();
            dataElements.set(des);
        }
    }

    public DataElement lookup(String name, DataElementScope scope) {
View Full Code Here

Examples of org.jmock.Mock.reset()

        assertEquals(f3, layout.getFragmentAt(new LayoutCoordinate(0, 3)));
        assertEquals(f4, layout.getFragmentAt(new LayoutCoordinate(0, 0)));
        assertEquals(f5, layout.getFragmentAt(new LayoutCoordinate(1, 0)));
        assertEquals(f6, layout.getFragmentAt(new LayoutCoordinate(1, 1)));
       
        listenerMock.reset();      
        listenerMock.expects(once()).method("handleEvent").with(eq(createEvent(f6, layout, LayoutEvent.MOVED_LEFT)));
        listenerMock.expects(once()).method("handleEvent").with(eq(createEvent(f1, layout, LayoutEvent.MOVED_DOWN)));
        listenerMock.expects(once()).method("handleEvent").with(eq(createEvent(f2, layout, LayoutEvent.MOVED_DOWN)));
        listenerMock.expects(once()).method("handleEvent").with(eq(createEvent(f3, layout, LayoutEvent.MOVED_DOWN)));
View Full Code Here

Examples of org.jmule.core.utils.MD4.reset()

    long start = PARTSIZE*partID;
   
    MD4 msgDigest = new MD4();
   
    ByteBuffer partData = Misc.getByteBuffer(PARTSIZE);
    msgDigest.reset();
    try {
     
      readChannel.position(start);
     
      int count = readChannel.read(partData);
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.