Examples of reset()


Examples of com.alibaba.druid.stat.JdbcStatManager.reset()

    Connection         globalConnection = null;

    protected void setUp() throws Exception {
        JdbcStatManager stat = JdbcStatManager.getInstance();

        stat.reset();

        Class.forName("com.alibaba.druid.proxy.DruidDriver");

        Connection conn = DriverManager.getConnection(url);
View Full Code Here

Examples of com.alibaba.dubbo.remoting.exchange.ExchangeServer.reset()

          ExchangeServer server = serverMap.get(key);
          if (server == null) {
            serverMap.put(key, createServer(url));
          } else {
            //server支持reset,配合override功能使用
            server.reset(url);
          }
        }
    }
   
    private ExchangeServer createServer(URL url) {
View Full Code Here

Examples of com.alibaba.fastjson.parser.JSONScanner.reset()

        {
            height = lexer.scanFieldInt(height_);
            if (lexer.matchStat == JSONScanner.NOT_MATCH) {
                // 退出快速模式, 进入常规模式
                lexer.reset(mark, mark_ch, mark_token);
                return (T) super.deserialze(parser, clazz, fieldName);
            }
        }
        {
            String value = lexer.scanFieldString(size_);
View Full Code Here

Examples of com.alibaba.fastjson.serializer.SerializeWriter.reset()

        SerializeWriter out = new SerializeWriter(1);
        out.append("abc");
        Assert.assertEquals("abc", out.toString());
        Assert.assertEquals(3, out.toCharArray().length);
        Assert.assertEquals(3, out.size());
        out.reset();
        Assert.assertEquals("", out.toString());
        Assert.assertEquals(0, out.toCharArray().length);
        Assert.assertEquals(0, out.size());
        out.writeInt(Integer.MIN_VALUE);
        Assert.assertEquals(Integer.toString(Integer.MIN_VALUE), out.toString());
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteStatement.reset()

        }
        count++;
        tupleCount++;
      }
      pS.step();
      pS.reset();

      records++;
      if(records == getBatchSize()) {
        SQLiteConnection conn = connCache.get(partition);
        conn.exec("COMMIT");
View Full Code Here

Examples of com.amazonaws.services.s3.internal.InputSubstream.reset()

                                    newResettableInputStream(file, fileNotFoundMsg)
                                        .disableClose(), // requires explicit release
                                    currentPosition, length, true);
                            String checksum = TreeHashGenerator.calculateTreeHash(inputSubStream);
                            byte[] binaryChecksum = BinaryUtils.fromHex(checksum);
                            inputSubStream.reset();
                            UploadMultipartPartRequest req = new UploadMultipartPartRequest()
                                .withAccountId(accountId)
                                .withChecksum(checksum)
                                .withBody(inputSubStream)
                                .withRange("bytes " + currentPosition + "-" + (currentPosition + length - 1) + "/*")
 
View Full Code Here

Examples of com.ardublock.translator.Translator.reset()

  public void actionPerformed(ActionEvent e)
  {
    boolean success;
    success = true;
    Translator translator = new Translator(workspace);
    translator.reset();
   
    Iterable<RenderableBlock> renderableBlocks = workspace.getRenderableBlocks();
   
    Set<RenderableBlock> loopBlockSet = new HashSet<RenderableBlock>();
    Set<RenderableBlock> subroutineBlockSet = new HashSet<RenderableBlock>();
View Full Code Here

Examples of com.asakusafw.runtime.io.util.DataBuffer.reset()

            if (available.isEmpty()) {
                throw new IllegalStateException();
            }
        }
        DataBuffer first = available.removeFirst();
        first.reset(0, 0);
        return first;
    }

    public synchronized void putNextPage(DataBuffer buffer) throws IOException, InterruptedException {
        // wait for the current active task
View Full Code Here

Examples of com.atolsystems.atolutilities.ACommandLineUtilities.reset()

                System.out.println("Connected to " + selectedTerminals.get(0).getName());
            }

            //ACommandLineUtilities clUtil = new ACommandLineUtilities(new File(AFileUtilities.getCurrentDirectory()), args, argSpecs, this);
            clUtil.setArgProcessor(this);
            clUtil.reset();

            //ACommandLineUtilities.dispArgs(clUtil.getArgsAsArray());

            //try {
            while (clUtil.processArg()) {
View Full Code Here

Examples of com.badlogic.gdx.tools.imagepacker.ColorBleedEffect.Mask.MaskIterator.reset()

        rgb[pixelIndex] = color.argb;
        iterator.markAsInProgress();
      }
    }

    iterator.reset();
  }

  private int getPixelIndex (int width, int x, int y) {
    return y * width + x;
  }
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.