Examples of MetricsRecorder


Examples of co.cask.tigon.sql.internal.MetricsRecorder

    InputFlowletConfiguration inputFlowletConfiguration = new LocalInputFlowletConfiguration(baseDir, spec);
    Location binDir = inputFlowletConfiguration.createStreamEngineProcesses();

    healthInspector = new HealthInspector(this);
    metricsRecorder = new MetricsRecorder(metrics);

    //Initiating AbstractInputFlowlet Components
    recordQueue = new GDATRecordQueue();

    //Initiating Netty TCP I/O ports
View Full Code Here

Examples of com.google.code.http4j.utils.MetricsRecorder

    out.flush();
  }
 
  @Override
  public void write(byte[] b) throws IOException {
    MetricsRecorder recorder = ThreadLocalMetricsRecorder.getInstance();
    recorder.getRequestTimer().start();
    out.write(b);
    recorder.getRequestTransportCounter().addAndGet((long) b.length);
  }
View Full Code Here

Examples of com.google.code.http4j.utils.MetricsRecorder

  public InputStreamWrapper(InputStream in) {
    this.in = new DataInputStream(in);
  }

  public int read() throws IOException {
    MetricsRecorder recorder = ThreadLocalMetricsRecorder.getInstance();
    int b = in.read();
    if (recorder.getResponseTransportCounter().addAndGet(1L) == 1) {
      recorder.getResponseTimer().start();
    }
    return b;
  }
View Full Code Here

Examples of com.google.code.http4j.utils.MetricsRecorder

  public InputStreamWrapper(InputStream in) {
    this.in = new DataInputStream(in);
  }

  public int read() throws IOException {
    MetricsRecorder recorder = ThreadLocalMetricsRecorder.getInstance();
    int b = in.read();
    if (recorder.getResponseTransportCounter().addAndGet(1l) == 1) {
      recorder.getResponseTimer().start();
    }
    return b;
  }
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.