Package org.apache.accumulo.trace.instrument

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


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


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

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

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

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

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

 
  @Override
  public void copyFromLocalFile(Path src, Path dst) throws IOException {
    Span span = Trace.start("copyFromLocalFile");
    if (Trace.isTracing()) {
      span.data("src", src.toString());
      span.data("dst", dst.toString());
    }
    try {
      impl.copyFromLocalFile(src, dst);
    } finally {
View Full Code Here

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

 
  @Override
  public void moveFromLocalFile(Path[] srcs, Path dst) throws IOException {
    Span span = Trace.start("moveFromLocalFile");
    if (Trace.isTracing()) {
      span.data("dst", dst.toString());
    }
    try {
      impl.moveFromLocalFile(srcs, dst);
    } finally {
      span.stop();
View Full Code Here

 
  @Override
  public void moveFromLocalFile(Path src, Path dst) throws IOException {
    Span span = Trace.start("moveFromLocalFile");
    if (Trace.isTracing()) {
      span.data("src", src.toString());
      span.data("dst", dst.toString());
    }
    try {
      impl.moveFromLocalFile(src, dst);
    } finally {
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.