Package org.apache.accumulo.trace.instrument

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


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


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

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

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

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

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

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

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

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

  @Override
  public boolean isFile(Path f) throws IOException {
    Span span = Trace.start("isFile");
    if (Trace.isTracing())
      span.data("path", f.toString());
    try {
      return impl.isFile(f);
    } finally {
      span.stop();
    }
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.