Package org.apache.accumulo.cloudtrace.instrument

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


    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.append(f, bufferSize);
    } finally {
      span.stop();
    }
  }
 
  @SuppressWarnings("deprecation")
  @Override
View Full Code Here


    if (Trace.isTracing())
      span.data("path", src.toString());
    try {
      return impl.getReplication(src);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public boolean setReplication(Path src, short replication) throws IOException {
View Full Code Here

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

    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.exists(f);
    } finally {
      span.stop();
    }
  }
 
  @SuppressWarnings("deprecation")
  @Override
View Full Code Here

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

    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.isFile(f);
    } finally {
      span.stop();
    }
  }
 
  @SuppressWarnings("deprecation")
  @Override
View Full Code Here

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

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

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

  public FileStatus[] listStatus(Path[] files) throws IOException {
    Span span = Trace.start("listStatus");
    try {
      return impl.listStatus(files);
    } finally {
      span.stop();
    }
  }
 
  @Override
  public FileStatus[] listStatus(Path[] files, PathFilter filter) 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.