Package org.apache.accumulo.trace.instrument

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


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


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

  }
 
  @Override
  public FSDataOutputStream create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress)
      throws IOException {
    Span span = Trace.start("create");
    try {
      return impl.create(f, overwrite, bufferSize, replication, blockSize, progress);
    } finally {
      span.stop();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public void initialize(URI name, Configuration conf) throws IOException {
    Span span = Trace.start("initialize");
    try {
      impl.initialize(name, conf);
    } finally {
      span.stop();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public FSDataOutputStream append(Path f, int bufferSize, Progressable progress) throws IOException {
    Span span = Trace.start("append");
    try {
      return impl.append(f, bufferSize, progress);
    } finally {
      span.stop();
    }
  }
View Full Code Here

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

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

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

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

    }
  }
 
  @Override
  public void setWorkingDirectory(Path new_dir) {
    Span span = Trace.start("setWorkingDirectory");
    try {
      impl.setWorkingDirectory(new_dir);
    } 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.