Examples of data()


Examples of org.apache.accumulo.cloudtrace.instrument.Span.data()

            locateSpan.stop();
          }
        }
       
        Span scanLocation = Trace.start("scan:location");
        scanLocation.data("tserver", loc.tablet_location);
        try {
          results = scan(loc, scanState, conf);
        } catch (AccumuloSecurityException e) {
          Tables.clearCache(instance);
          if (!Tables.exists(instance, scanState.tableName.toString()))
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

          Compactor compactor = new Compactor(conf, fs, copy, null, compactTmpName, filesToCompact.size() == 0 ? propogateDeletes : true, acuTableConf, extent,
              cenv, compactionIterators, reason);
         
          CompactionStats mcs = compactor.call();
         
          span.data("files", "" + smallestFiles.size());
          span.data("read", "" + mcs.getEntriesRead());
          span.data("written", "" + mcs.getEntriesWritten());
          majCStats.add(mcs);
         
          datafileManager.bringMajorCompactionOnline(smallestFiles, compactTmpName, fileName,
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

              cenv, compactionIterators, reason);
         
          CompactionStats mcs = compactor.call();
         
          span.data("files", "" + smallestFiles.size());
          span.data("read", "" + mcs.getEntriesRead());
          span.data("written", "" + mcs.getEntriesWritten());
          majCStats.add(mcs);
         
          datafileManager.bringMajorCompactionOnline(smallestFiles, compactTmpName, fileName,
              filesToCompact.size() == 0 && compactionId != null ? compactionId.getFirst() : null,
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

         
          CompactionStats mcs = compactor.call();
         
          span.data("files", "" + smallestFiles.size());
          span.data("read", "" + mcs.getEntriesRead());
          span.data("written", "" + mcs.getEntriesWritten());
          majCStats.add(mcs);
         
          datafileManager.bringMajorCompactionOnline(smallestFiles, compactTmpName, fileName,
              filesToCompact.size() == 0 && compactionId != null ? compactionId.getFirst() : null,
              new DataFileValue(mcs.getFileSize(), mcs.getEntriesWritten()));
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

        majorCompactionInProgress = false;
        this.notifyAll();
      }
     
      Span curr = Trace.currentTrace();
      curr.data("extent", "" + getExtent());
      if (majCStats != null) {
        curr.data("read", "" + majCStats.getEntriesRead());
        curr.data("written", "" + majCStats.getEntriesWritten());
      }
      span.stop();
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

      }
     
      Span curr = Trace.currentTrace();
      curr.data("extent", "" + getExtent());
      if (majCStats != null) {
        curr.data("read", "" + majCStats.getEntriesRead());
        curr.data("written", "" + majCStats.getEntriesWritten());
      }
      span.stop();
    }
   
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

     
      Span curr = Trace.currentTrace();
      curr.data("extent", "" + getExtent());
      if (majCStats != null) {
        curr.data("read", "" + majCStats.getEntriesRead());
        curr.data("written", "" + majCStats.getEntriesWritten());
      }
      span.stop();
    }
   
    return majCStats;
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

            locateSpan.stop();
          }
        }
       
        Span scanLocation = Trace.start("scan:location");
        scanLocation.data("tserver", loc.tablet_location);
        try {
          results = scan(loc, scanState, conf);
        } catch (AccumuloSecurityException e) {
          Tables.clearCache(instance);
          if (!Tables.exists(instance, scanState.tableName.toString()))
View Full Code Here

Examples of org.apache.accumulo.trace.instrument.Span.data()

    for (Entry<Key,Value> entry : scanner) {
      System.out.println(entry.getKey().toString() + " -> " + entry.getValue().toString());
      ++numberOfEntriesRead;
    }
    // You can add additional metadata (key, values) to Spans which will be able to be viewed in the Monitor
    readSpan.data("Number of Entries Read", String.valueOf(numberOfEntriesRead));

    Trace.off();
  }

  public static void main(String[] args) throws Exception {
View Full Code Here

Examples of org.apache.catalina.cluster.util.LinkObject.data()

                LinkObject entry = queue.remove();
                if (entry != null) {
                    do {
                        int messagesize = 0;
                        try {
                            byte[] data = (byte[]) entry.data();
                            messagesize = data.length;
                            sender.pushMessage((String) entry.getKey(), data);
                            outQueueCounter++;
                        } catch (Exception x) {
                            log.warn(sm.getString(
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.