Package org.apache.blur.trace

Examples of org.apache.blur.trace.TraceStorage


        .setMaxRecordsPerRowFetchRequest(configuration.getInt(BLUR_MAX_RECORDS_PER_ROW_FETCH_REQUEST, 1000));
    controllerServer.setConfiguration(configuration);

    controllerServer.init();

    final TraceStorage traceStorage = setupTraceStorage(configuration);
    Trace.setStorage(traceStorage);
    Trace.setNodeName(nodeName);

    Iface iface = BlurUtil.wrapFilteredBlurServer(configuration, controllerServer, false);
    iface = BlurUtil.recordMethodCallsAndAverageTimes(iface, Iface.class, true);
View Full Code Here


  @Test
  public void testBlurIndexWriter() throws IOException {
    setupWriter(_configuration);
    long s = System.nanoTime();
    int total = 0;
    TraceStorage oldStorage = Trace.getStorage();
    Trace.setStorage(new BaseTraceStorage(new BlurConfiguration()) {
      @Override
      public void close() throws IOException {

      }
View Full Code Here

    shardServer.setQueryChecker(queryChecker);
    shardServer.setMaxRecordsPerRowFetchRequest(configuration.getInt(BLUR_MAX_RECORDS_PER_ROW_FETCH_REQUEST, 1000));
    shardServer.setConfiguration(configuration);
    shardServer.init();

    final TraceStorage traceStorage = setupTraceStorage(configuration);
    Trace.setStorage(traceStorage);
    Trace.setNodeName(nodeName);

    Iface iface = BlurUtil.wrapFilteredBlurServer(configuration, shardServer, true);
    iface = BlurUtil.recordMethodCallsAndAverageTimes(iface, Iface.class, false);
View Full Code Here

    }
  }

  @Override
  public List<String> traceList() throws BlurException, TException {
    TraceStorage storage = Trace.getStorage();
    try {
      return storage.getTraceIds();
    } catch (Exception e) {
      throw new BException("Unknown error while trying to get traceList", e);
    }
  }
View Full Code Here

    }
  }

  @Override
  public List<String> traceRequestList(String traceId) throws BlurException, TException {
    TraceStorage storage = Trace.getStorage();
    try {
      return storage.getRequestIds(traceId);
    } catch (Exception e) {
      throw new BException("Unknown error while trying to get traceRequestList for traceId [{0}]", e, traceId);
    }
  }
View Full Code Here

    }
  }

  @Override
  public String traceRequestFetch(String traceId, String requestId) throws BlurException, TException {
    TraceStorage storage = Trace.getStorage();
    try {
      return storage.getRequestContentsJson(traceId, requestId);
    } catch (Exception e) {
      throw new BException("Unknown error while trying to get traceRequestList for traceId [{0}] requestId [{1}]", e,
          traceId, requestId);
    }
  }
View Full Code Here

    }
  }

  @Override
  public void traceRemove(String traceId) throws BlurException, TException {
    TraceStorage storage = Trace.getStorage();
    try {
      storage.removeTrace(traceId);
    } catch (Exception e) {
      throw new BException("Unknown error while trying to get remove trace [{0}]", e, traceId);
    }
  }
View Full Code Here

  @Test
  public void testMutationReplaceLargeRow() throws Exception {
    final String rowId = "largerow";
    indexManager.mutate(getLargeRow(rowId));
    TraceStorage oldReporter = Trace.getStorage();
    Trace.setStorage(new BaseTraceStorage(new BlurConfiguration()) {

      @Override
      public void close() throws IOException {
View Full Code Here

TOP

Related Classes of org.apache.blur.trace.TraceStorage

Copyright © 2018 www.massapicom. 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.