Examples of TInfo


Examples of cloudtrace.thrift.TInfo

  }
 
  public static TInfo traceInfo() {
    Span span = currentTrace.get();
    if (span != null) {
      return new TInfo(span.traceId(), span.spanId());
    }
    return dontTrace;
  }
View Full Code Here

Examples of org.apache.accumulo.cloudtrace.thrift.TInfo

  }
 
  public static TInfo traceInfo() {
    Span span = currentTrace.get();
    if (span != null) {
      return new TInfo(span.traceId(), span.spanId());
    }
    return dontTrace;
  }
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

    private MutationSet sendMutationsToTabletServer(String location, Map<KeyExtent,List<Mutation>> tabMuts, TimeoutTracker timeoutTracker) throws IOException,
        AccumuloSecurityException, AccumuloServerException {
      if (tabMuts.size() == 0) {
        return new MutationSet();
      }
      TInfo tinfo = Tracer.traceInfo();
      TTransport transport = null;
     
      timeoutTracker.startingWrite();
     
      try {
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

      Authorizations authorizations, boolean retry, AccumuloConfiguration conf) throws AccumuloException, AccumuloSecurityException, NotServingTabletException {
    if (server == null)
      throw new AccumuloException(new IOException());
   
    try {
      TInfo tinfo = Tracer.traceInfo();
      TabletClientService.Client client = ThriftUtil.getTServerClient(server, conf);
      try {
        // not reading whole rows (or stopping on row boundries) so there is no need to enable isolation below
        ScanState scanState = new ScanState(credentials, extent.getTableId(), authorizations, range, fetchedColumns, size, serverSideIteratorList,
            serverSideIteratorOptions, false);
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

    if (scanState.finished)
      return null;
   
    OpTimer opTimer = new OpTimer(log, Level.TRACE);
   
    TInfo tinfo = Tracer.traceInfo();
    TabletClientService.Client client = ThriftUtil.getTServerClient(loc.tablet_location, conf);
   
    String old = Thread.currentThread().getName();
    try {
      ScanResult sr;
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

  }
 
  public static TInfo traceInfo() {
    Span span = currentTrace.get();
    if (span != null) {
      return new TInfo(span.traceId(), span.spanId());
    }
    return dontTrace;
  }
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

      }
     
      Range r = new Range(row, true, row2, false);
      batch.put(keyExtent.toThrift(), Collections.singletonList(r.toThrift()));
    }
    TInfo tinfo = Tracer.traceInfo();
    Map<String,Map<String,String>> emptyMapSMapSS = Collections.emptyMap();
    List<IterInfo> emptyListIterInfo = Collections.emptyList();
    List<TColumn> emptyListColumn = Collections.emptyList();
    InitialMultiScan is = client.startMultiScan(tinfo, st, batch, emptyListColumn, emptyListIterInfo, emptyMapSMapSS, Constants.NO_AUTHS.getAuthorizationsBB(),
        false);
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

  }
 
  private void sendToServer(String location, TabletServerMutations<QCMutation> mutations) {
    TabletClientService.Iface client = null;
   
    TInfo tinfo = Tracer.traceInfo();
   
    Map<Long,CMK> cmidToCm = new HashMap<Long,CMK>();
    MutableLong cmid = new MutableLong(0);
   
    SessionID sessionId = null;
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

  }
 
  private void invalidateSession(long sessionId, String location) throws TException {
    TabletClientService.Iface client = null;
   
    TInfo tinfo = Tracer.traceInfo();
   
    try {
      client = getClient(location);
      client.invalidateConditionalUpdate(tinfo, sessionId);
    } finally {
View Full Code Here

Examples of org.apache.accumulo.trace.thrift.TInfo

     
      for (SessionID sid : sessions) {
        if (!sid.isActive())
          continue;
       
        TInfo tinfo = Tracer.traceInfo();
        try {
          client = getClient(sid.location);
          client.closeConditionalUpdate(tinfo, sid.sessionID);
        } catch (Exception e) {} finally {
          ThriftUtil.returnClient((TServiceClient) client);
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.