Package org.apache.accumulo.cloudtrace.instrument

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


    }
  }
 
  @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 {
      impl.setOwner(p, username, groupname);
    } finally {
      span.stop();
    }
  }
View Full Code Here

    }
  }
 
  @Override
  public void setTimes(Path p, long mtime, long atime) throws IOException {
    Span span = Trace.start("setTimes");
    try {
      impl.setTimes(p, mtime, atime);
    } finally {
      span.stop();
    }
  }
View Full Code Here

    this.impl = 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

TOP

Related Classes of org.apache.accumulo.cloudtrace.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.