com.yammer.metrics.core.Timer.count()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中com.yammer.metrics.core.Timer.count()方法的一些代码示例,展示了Timer.count()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timer.count()方法的具体详情如下:
包路径:com.yammer.metrics.core.Timer
类名称:Timer
方法名:count

Timer.count介绍

暂无

代码示例

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public long getReadOperations()
{
  return readMetrics.latency.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

/** MBean related methods */
public long getOperations()
{
  return metric.latency.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public long getRangeCount()
{
  return metric.rangeLatency.latency.count();
}

代码示例来源:origin: urbanairship/statshtable

@Override
public long count() {
  return t.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public long getRangeOperations()
{
  return rangeMetrics.latency.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public long getWriteOperations()
{
  return writeMetrics.latency.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public long getReadCount()
{
  return metric.readLatency.latency.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

public long getWriteCount()
{
  return metric.writeLatency.latency.count();
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

@Deprecated
  public synchronized double getRecentLatency()
  {
    long ops = latency.count();
    long n = totalLatency.count();
    if (ops == lastOpCount)
      return 0;
    try
    {
      return ((double) n - lastLatency) / (ops - lastOpCount);
    }
    finally
    {
      lastLatency = n;
      lastOpCount = ops;
    }
  }
}

代码示例来源:origin: org.rhq/rhq-enterprise-server

@Override
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public long getTotalRequests() {
  return driverMetrics.getRequestsTimer().count();
}

代码示例来源:origin: amient/kafka-metrics

@Override
public void processTimer(MetricName name, Timer timer, Long timestamp) {
  Map<String, Double> fields = new HashMap<String, Double>();
  fields.put("Count", Double.valueOf(timer.count()));
  fields.put("MeanRate", timer.meanRate());
  fields.put("FifteenMinuteRate", timer.fifteenMinuteRate());
  fields.put("FiveMinuteRate", timer.fiveMinuteRate());
  fields.put("OneMinuteRate", timer.oneMinuteRate());
  fields.put("Max", timer.max());
  fields.put("Mean", timer.mean());
  fields.put("Min", timer.min());
  fields.put("StdDev", timer.stdDev());
  fields.put("Sum", timer.sum());
  publish(createMeasurement(name, timestamp, fixedTags, fields));
}

代码示例来源:origin: facebookarchive/hive-io-experimental

@Override
public void endReadRow(WritableComparable key, Writable value) {
 readSuccessRatio.getNumeratorCounter().inc();
 readSuccessRatio.getDenominatorCounter().inc();
 readTimerContext.stop();
 print(readTimer.count(), printPeriod, "read");
}

代码示例来源:origin: addthis/hydra

when(timer.durationUnit()).thenReturn(TimeUnit.MILLISECONDS);
when(timer.rateUnit()).thenReturn(TimeUnit.SECONDS);
when(timer.count()).thenReturn(1L);

相关文章