Package org.apache.accumulo.cloudtrace.instrument

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


  public FileStatus[] listStatus(Path[] files, PathFilter filter) throws IOException {
    Span span = Trace.start("listStatus");
    try {
      return impl.listStatus(files, filter);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FileStatus[] globStatus(Path pathPattern) throws IOException {
View Full Code Here


    if (Trace.isTracing())
      span.data("pattern", pathPattern.toString());
    try {
      return impl.globStatus(pathPattern);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FileStatus[] globStatus(Path pathPattern, PathFilter filter) throws IOException {
View Full Code Here

    if (Trace.isTracing())
      span.data("pattern", pathPattern.toString());
    try {
      return impl.globStatus(pathPattern, filter);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public Path getHomeDirectory() {
View Full Code Here

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

    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.mkdirs(f);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void copyFromLocalFile(Path src, Path dst) throws IOException {
View Full Code Here

      span.data("dst", dst.toString());
    }
    try {
      impl.copyFromLocalFile(src, dst);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void moveFromLocalFile(Path[] srcs, Path dst) throws IOException {
View Full Code Here

      span.data("dst", dst.toString());
    }
    try {
      impl.moveFromLocalFile(srcs, dst);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void moveFromLocalFile(Path src, Path dst) throws IOException {
View Full Code Here

      span.data("dst", dst.toString());
    }
    try {
      impl.moveFromLocalFile(src, dst);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void copyFromLocalFile(boolean delSrc, Path src, Path dst) throws IOException {
View Full Code Here

      span.data("dst", dst.toString());
    }
    try {
      impl.copyFromLocalFile(delSrc, src, dst);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst) throws IOException {
View Full Code Here

      span.data("dst", dst.toString());
    }
    try {
      impl.copyFromLocalFile(delSrc, overwrite, srcs, dst);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void copyFromLocalFile(boolean delSrc, boolean overwrite, Path src, Path dst) 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.