Examples of reset()


Examples of org.apache.camel.converter.stream.StreamCache.reset()

        setInterceptorLogic(new Processor() {
            public void process(Exchange exchange) throws Exception {
                try {
                    StreamCache newBody = exchange.getIn().getBody(StreamCache.class);
                    if (newBody != null) {
                        newBody.reset();
                        exchange.getIn().setBody(newBody);
                    }
                } catch (NoTypeConversionAvailableException ex) {
                    // ignore if in is not of StreamCache type
                }
View Full Code Here

Examples of org.apache.camel.wsdl_first.JaxwsTestHandler.reset()

    }

    public void testInvokingServiceFromCXFClient() throws Exception {

        JaxwsTestHandler fromHandler = getMandatoryBean(JaxwsTestHandler.class, "fromEndpointJaxwsHandler");
        fromHandler.reset();
       
        JaxwsTestHandler toHandler = getMandatoryBean(JaxwsTestHandler.class, "toEndpointJaxwsHandler");
        toHandler.reset();

        URL wsdlURL = getClass().getClassLoader().getResource("person.wsdl");
View Full Code Here

Examples of org.apache.cassandra.db.ColumnFamilyStore.reset()

        for (String cfName : table.getColumnFamilies())
        {
            ColumnFamilyStore cfs = table.getColumnFamilyStore(cfName);
            try
            {
                cfs.reset();
            }
            catch (Exception e)
            {
                throw new RuntimeException(e);
            }
View Full Code Here

Examples of org.apache.cassandra.io.DataInputBuffer.reset()

      DataInputBuffer bufIn = new DataInputBuffer();
      logger_.debug("Handle Digest reponses");
      for( Message response : responses_ )
      {
        byte[] body = (byte[])response.getMessageBody()[0];           
              bufIn.reset(body, body.length);
              try
              {                
                  ReadResponse result = ReadResponse.serializer().deserialize(bufIn);
                  byte[] digest = result.digest();
                  if( !Arrays.equals(row_.digest(), digest) )
View Full Code Here

Examples of org.apache.cassandra.io.DataOutputBuffer.reset()

                  }
                  else
                  {
                      Collections.sort(lfs, new FileStructComparator());
                      ColumnFamily columnFamily;
                      bufOut.reset();
                      if(lfs.size() > 1)
                      {
                        for (FileStruct filestruct : lfs)
                        {
                          try
View Full Code Here

Examples of org.apache.cassandra.io.util.DataOutputBuffer.reset()

                                            DatabaseDescriptor.getComparator(keyspace, columnFamily),
                                            DatabaseDescriptor.getSubComparator(keyspace, columnFamily),
                                            CFMetaData.getId(keyspace, columnFamily));
       
        for(ColumnFamily cf : columnFamilies) {
            bufOut.reset();
            ColumnFamily.serializer().serializeWithIndexes(cf, bufOut);
            byte[] data = new byte[bufOut.getLength()];
            System.arraycopy(bufOut.getData(), 0, data, 0, bufOut.getLength());

            column = new Column(FBUtilities.toByteBuffer(cf.id()), ByteBuffer.wrap(data), 0);
View Full Code Here

Examples of org.apache.cassandra.io.util.FileDataInput.reset()

            }

            file.mark();
            for (IndexHelper.IndexInfo indexInfo : ranges)
            {
                file.reset();
                long curOffsert = file.skipBytes((int)indexInfo.offset);
                assert curOffsert == indexInfo.offset;
                // TODO only completely deserialize columns we are interested in
                while (file.bytesPastMark() < indexInfo.offset + indexInfo.width)
                {
View Full Code Here

Examples of org.apache.cassandra.net.OutboundTcpConnectionPool.reset()

        InetAddress me = InetAddress.getByName("127.0.0.2");
        InetAddress com_ip = InetAddress.getByName("127.0.0.3");

        OutboundTcpConnectionPool pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(me, pool.endPoint());
        pool.reset(com_ip);
        Assert.assertEquals(com_ip, pool.endPoint());

        MessagingService.instance().destroyConnectionPool(me);
        pool = MessagingService.instance().getConnectionPool(me);
        Assert.assertEquals(com_ip, pool.endPoint());
View Full Code Here

Examples of org.apache.cassandra.utils.BytesReadTracker.reset()

            {
                long length = section.right - section.left;
                long bytesRead = 0;
                while (bytesRead < length)
                {
                    in.reset(0);
                    key = SSTableReader.decodeKey(StorageService.getPartitioner(), localFile.desc, ByteBufferUtil.readWithShortLength(in));
                    long dataSize = SSTableReader.readRowSize(in, localFile.desc);

                    ColumnFamily cached = cfs.getRawCachedRow(key);
                    if (cached != null && remoteFile.type == OperationType.AES && dataSize <= DatabaseDescriptor.getInMemoryCompactionLimit())
View Full Code Here

Examples of org.apache.catalina.HttpResponse.reset()

            return;

        // Reset the response data buffer (if possible)
        try {
            if (hresponse.isError())
                hresponse.reset(statusCode, message);
        } catch (Throwable e) {
            if (debug >= 1)
                log("status.reset", e);
        }
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.