Package org.apache.accumulo.trace.instrument

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


  public boolean delete(Path f, boolean recursive) throws IOException {
    Span span = Trace.start("delete");
    try {
      return impl.delete(f, recursive);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FileStatus[] listStatus(Path f) throws IOException {
View Full Code Here


  public FileStatus[] listStatus(Path f) throws IOException {
    Span span = Trace.start("listStatus");
    try {
      return impl.listStatus(f);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public void setWorkingDirectory(Path new_dir) {
View Full Code Here

  public void setWorkingDirectory(Path new_dir) {
    Span span = Trace.start("setWorkingDirectory");
    try {
      impl.setWorkingDirectory(new_dir);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public Path getWorkingDirectory() {
View Full Code Here

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

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

  public FileStatus getFileStatus(Path f) throws IOException {
    Span span = Trace.start("getFileStatus");
    try {
      return impl.getFileStatus(f);
    } finally {
      span.stop();
    }
  }
 
  public static FileSystem wrap(FileSystem fileSystem) {
    return new TraceFileSystem(fileSystem);
View Full Code Here

      if (impl != null)
        impl.setConf(conf);
      else
        super.setConf(conf);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public Configuration getConf() {
View Full Code Here

  public Configuration getConf() {
    Span span = Trace.start("getConf");
    try {
      return impl.getConf();
    } finally {
      span.stop();
    }
  }
 
  @Override
  public BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len) throws IOException {
View Full Code Here

  public BlockLocation[] getFileBlockLocations(FileStatus file, long start, long len) throws IOException {
    Span span = Trace.start("getFileBlockLocations");
    try {
      return impl.getFileBlockLocations(file, start, len);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FSDataInputStream open(Path f) throws IOException {
View Full Code Here

    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return new TraceFSDataInputStream(impl.open(f));
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FSDataOutputStream create(Path f) 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.