Package org.apache.blur.trace

Examples of org.apache.blur.trace.Tracer.done()


          return method.invoke(t, args);
        } catch (InvocationTargetException e) {
          error = true;
          throw e.getTargetException();
        } finally {
          trace.done();
          long end = System.nanoTime();
          double ms = (end - start) / 1000000.0;
          if (RESPONSE_LOG.isInfoEnabled() && notSetUserMethod) {
            if (argsStr == null) {
              if (loggerArgsState == null) {
View Full Code Here


    results.setTotalResults(hitsIterable.getTotalResults());
    results.setShardInfo(hitsIterable.getShardInfo());
    if (query.minimumNumberOfResults > 0) {
      Tracer trace = Trace.trace("convertToHits - skipTo", Trace.param("start", query.start));
      hitsIterable.skipTo(query.start);
      trace.done();
      BlurIterator<BlurResult, BlurException> iterator = hitsIterable.iterator();
      for (int count = 0; count < query.fetch && iterator.hasNext(); count++) {
        results.addToResults(iterator.next());
      }
    }
View Full Code Here

          }
        } finally {
          if (docsInRowSpanToFetch.nextSetBit(cursor) != -1) {
            moreToFetch.set(true);
          }
          trace2.done();
        }
        return orderDocsBasedOnFamilyOrder(docs, selector);
      } else {
        throw new IOException("Expecting a segment reader got a [" + orgReader + "]");
      }
View Full Code Here

    shuffledConnections.addAll(connections);

    Collections.shuffle(shuffledConnections, _random.get());
    boolean allBad = true;
    int connectionErrorCount = 0;
    traceSetup.done();
    while (true) {
      for (Connection connection : shuffledConnections) {
        Tracer traceConnectionSetup = Trace.trace("execute - connection setup");
        try {
          if (isBadConnection(connection)) {
View Full Code Here

              markBadConnection(connection);
              continue;
            }
          }
        } finally {
          traceConnectionSetup.done();
        }
        Tracer trace = null;
        try {
          User user = UserConverter.toThriftUser(UserContext.getUser());
          client.get().setUser(user);
View Full Code Here

            }
            throw e;
          }
        } finally {
          if (trace != null) {
            trace.done();
          }
          if (client.get() != null) {
            returnClient(connection, client);
          }
        }
View Full Code Here

      }
      long end = System.nanoTime();
      _metricsGroup.readAccess.update((end - start) / 1000);
      _metricsGroup.readThroughput.mark(length);
    } finally {
      trace.done();
    }
  }

  @Override
  public ReusedBufferedIndexInput clone() {
View Full Code Here

    Path path = getPath(name);
    Tracer trace = Trace.trace("filesystem - create", Trace.param("path", path));
    try {
      return _fileSystem.create(path);
    } finally {
      trace.done();
    }
  }

  @Override
  public IndexInput openInput(String name, IOContext context) throws IOException {
View Full Code Here

    try {
      inputStream = _fileSystem.open(path);
      _inputMap.put(path, inputStream);
      return inputStream;
    } finally {
      trace.done();
    }
  }

  @Override
  public String[] listAll() throws IOException {
View Full Code Here

      for (int i = 0; i < result.length; i++) {
        result[i] = files[i].getPath().getName();
      }
      return result;
    } finally {
      trace.done();
    }
  }

  @Override
  public boolean fileExists(String name) throws IOException {
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.