Package org.apache.accumulo.trace.instrument

Examples of org.apache.accumulo.trace.instrument.Span


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


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

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

public class TraceFileSystem extends FileSystem {
 
  @Override
  public void setConf(Configuration conf) {
    Span span = Trace.start("setConf");
    try {
      if (impl != null)
        impl.setConf(conf);
      else
        super.setConf(conf);
    } finally {
      span.stop();
    }
  }
View Full Code Here

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

    }
  }
 
  @Override
  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();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public FSDataInputStream open(Path f) throws IOException {
    Span span = Trace.start("open");
    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return new TraceFSDataInputStream(impl.open(f));
    } finally {
      span.stop();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public FSDataOutputStream create(Path f) throws IOException {
    Span span = Trace.start("create");
    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.create(f);
    } finally {
      span.stop();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public FSDataOutputStream create(Path f, boolean overwrite) throws IOException {
    Span span = Trace.start("create");
    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.create(f, overwrite);
    } finally {
      span.stop();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public FSDataOutputStream create(Path f, Progressable progress) throws IOException {
    Span span = Trace.start("create");
    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
     
      return impl.create(f, progress);
    } finally {
      span.stop();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.trace.instrument.Span

Copyright © 2018 www.massapicom. 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.