Package org.apache.accumulo.trace.instrument

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


      span.data("local", tmpLocalFile.toString());
    }
    try {
      impl.completeLocalOutput(fsOutputFile, tmpLocalFile);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void close() throws IOException {
View Full Code Here


  public void close() throws IOException {
    Span span = Trace.start("close");
    try {
      impl.close();
    } finally {
      span.stop();
    }
  }
 
  @Override
  public long getUsed() throws IOException {
View Full Code Here

  public long getUsed() throws IOException {
    Span span = Trace.start("getUsed");
    try {
      return impl.getUsed();
    } finally {
      span.stop();
    }
  }
 
  @SuppressWarnings("deprecation")
  @Override
View Full Code Here

    }
    System.out.println(String.format("Trivial took %d millis", System.currentTimeMillis() - now));
    now = System.currentTimeMillis();
    for (long i = 0; i < 1000 * 1000; i++) {
      Span s = Trace.start("perf");
      s.stop();
    }
    System.out.println(String.format("Span Loop took %d millis", System.currentTimeMillis() - now));
    now = System.currentTimeMillis();
    Trace.on("test");
    for (long i = 0; i < 1000 * 1000; i++) {
View Full Code Here

    System.out.println(String.format("Span Loop took %d millis", System.currentTimeMillis() - now));
    now = System.currentTimeMillis();
    Trace.on("test");
    for (long i = 0; i < 1000 * 1000; i++) {
      Span s = Trace.start("perf");
      s.stop();
    }
    Trace.off();
    System.out.println(String.format("Trace took %d millis", System.currentTimeMillis() - now));
  }
}
View Full Code Here

      span.data("path", f.toString());
    }
    try {
      return impl.getBlockSize(f);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public long getDefaultBlockSize() {
View Full Code Here

  public long getDefaultBlockSize() {
    Span span = Trace.start("getDefaultBlockSize");
    try {
      return impl.getDefaultBlockSize();
    } finally {
      span.stop();
    }
  }
 
  @Override
  public short getDefaultReplication() {
View Full Code Here

  public short getDefaultReplication() {
    Span span = Trace.start("getDefaultReplication");
    try {
      return impl.getDefaultReplication();
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FileChecksum getFileChecksum(Path f) throws IOException {
View Full Code Here

      span.data("path", f.toString());
    }
    try {
      return impl.getFileChecksum(f);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void setVerifyChecksum(boolean verifyChecksum) {
View Full Code Here

  public void setVerifyChecksum(boolean verifyChecksum) {
    Span span = Trace.start("setVerifyChecksum");
    try {
      impl.setVerifyChecksum(verifyChecksum);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void setPermission(Path p, FsPermission permission) 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.