Package org.apache.accumulo.trace.instrument

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


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


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

 
  @Override
  public Path startLocalOutput(Path fsOutputFile, Path tmpLocalFile) throws IOException {
    Span span = Trace.start("startLocalOutput");
    if (Trace.isTracing()) {
      span.data("out", fsOutputFile.toString());
      span.data("local", tmpLocalFile.toString());
    }
    try {
      return impl.startLocalOutput(fsOutputFile, tmpLocalFile);
    } finally {
View Full Code Here

  @Override
  public Path startLocalOutput(Path fsOutputFile, Path tmpLocalFile) throws IOException {
    Span span = Trace.start("startLocalOutput");
    if (Trace.isTracing()) {
      span.data("out", fsOutputFile.toString());
      span.data("local", tmpLocalFile.toString());
    }
    try {
      return impl.startLocalOutput(fsOutputFile, tmpLocalFile);
    } finally {
      span.stop();
View Full Code Here

 
  @Override
  public void completeLocalOutput(Path fsOutputFile, Path tmpLocalFile) throws IOException {
    Span span = Trace.start("completeLocalOutput");
    if (Trace.isTracing()) {
      span.data("out", fsOutputFile.toString());
      span.data("local", tmpLocalFile.toString());
    }
    try {
      impl.completeLocalOutput(fsOutputFile, tmpLocalFile);
    } finally {
View Full Code Here

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

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

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

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

 
  @Override
  public void setOwner(Path p, String username, String groupname) throws IOException {
    Span span = Trace.start("setOwner");
    if (Trace.isTracing()) {
      span.data("path", p.toString());
      span.data("user", username);
      span.data("group", groupname);
    }
   
    try {
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.