Examples of reset()


Examples of net.timewalker.ffmq3.utils.RawDataBuffer.reset()

       
        if (!receiveData(inChannel.ioBuffer, inChannel.stream, responseSize))
            return null;
       
        // Unserialize response
        buffer.reset();
        try
        {
            return PacketSerializer.unserializeFrom(buffer);
        }
        catch (Exception e)
View Full Code Here

Examples of net.tomp2p.message.CountConnectionOutboundHandler.reset()

                    return "yes";
                }
            });
            FuturePeerConnection peerConnection = sender.createPeerConnection(recv1.peerAddress());
            ccohTCP.reset();
            ccohUDP.reset();

            FutureDirect fd1 = sender.sendDirect(peerConnection).object("test")
                    .connectionTimeoutTCPMillis(2000).idleTCPSeconds(10 * 1000).start();
            fd1.awaitListenersUninterruptibly();
            Assert.assertEquals(true, fd1.isSuccess());
View Full Code Here

Examples of net.xoetrope.optional.data.sql.NamedConnectionManager.reset()

    String dbDriver = connEle.getAttribute( "driver" );
    String dbUrl = connEle.getAttribute( "url" );
    dbUrl = checkLocalHsqldb( dbDriver, dbUrl );

    NamedConnectionManager connMgr = ( NamedConnectionManager )NamedConnectionManager.getInstance();
    connMgr = ( NamedConnectionManager )connMgr.reset( connEle.getAttribute( "id" ),
        dbDriver,
        dbUrl,
        connEle.getAttribute( "user" ),
        connEle.getAttribute( "pwd" ) );
View Full Code Here

Examples of net.xoetrope.xui.XPageManager.reset()

        rsPrefs.put( "defaultLanguage", defLangCode );
        project.setStartupParam( "Language", defLangCode );

        pageHelper.componentFactory.setResourceBundle( defLangCode );
        XPageManager pm = project.getPageManager();
        pm.reset();
        pm.showPage( "Welcome" );
        updateBoundComponentValues();
      }
      inChangeLang = false;
    }
View Full Code Here

Examples of next.i.view.widgets.XProgress.reset()

    XButton btn = new XButton("Start Progress");

    btn.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        if(!progress.isRunning()){
          progress.reset();
          runProgress(0, progress);
        }
      }
    });
View Full Code Here

Examples of nz.ac.waikato.modeljunit.RandomTester.reset()

      int totalTime = 0; // sum of all the totalTimes.
      for (int seed = 0; seed < experiments; seed++) {
        int testSeqTime = 0;
        int lastTime = 0; // the time after the last transition
        metric.clear();
        tester.reset();
        tester.setRandom(new Random(seed));
        int count = 0;
        while (metric.getPercentage() < 100.0) {
          tester.generate(1);
          if (model.getTime() > lastTime) {
View Full Code Here

Examples of nz.ac.waikato.modeljunit.Tester.reset()

      int totalTime = 0; // sum of all the totalTimes.
      for (int seed = 0; seed < experiments; seed++) {
        int testSeqTime = 0;
        int lastTime = 0; // the time after the last transition
        metric.clear();
        tester.reset();
        tester.setRandom(new Random(seed));
        int count = 0;
        while (metric.getPercentage() < 100.0) {
          tester.generate(1);
          if (model.getTime() > lastTime) {
View Full Code Here

Examples of org.aavso.tools.vstar.ui.dialog.AdditiveLoadFileOrUrlChooser.reset()

              .getDefaultFileExtensions());
          fileChoosers.get(id).setFileExtensions(newFileExtensions);
        }
      }
      fileChooser = fileChoosers.get(id);
      fileChooser.reset();
    } else {
      fileChooser = new AdditiveLoadFileOrUrlChooser(allowURL);
    }

    // Was a file chosen or a URL string accepted?
View Full Code Here

Examples of org.activemq.message.ActiveMQBytesMessage.reset()

  }
  public void testReadInt() {
    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      msg.writeInt(3000);
      msg.reset();
      assertTrue(msg.readInt() == 3000);
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
    }
View Full Code Here

Examples of org.activemq.message.ActiveMQStreamMessage.reset()

      assertTrue(((Byte)msg.readObject()).byteValue()==testByte);
      msg.clearBody();
     
      short testShort = 3;
      msg.writeShort(testShort);
      msg.reset();
      assertTrue(((Short)msg.readObject()).shortValue()==testShort);
      msg.clearBody();
     
      int testInt = 4;
      msg.writeInt(testInt);
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.