Package org.apache.accumulo.cloudtrace.instrument

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


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


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

 
  @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

  @SuppressWarnings("deprecation")
  @Override
  public short getReplication(Path src) throws IOException {
    Span span = Trace.start("getReplication");
    if (Trace.isTracing())
      span.data("path", src.toString());
    try {
      return impl.getReplication(src);
    } 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

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.