com.jamonapi.Monitor.getAvgActive()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(113)

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

Monitor.getAvgActive介绍

暂无

代码示例

代码示例来源:origin: net.sf.patterntesting/patterntesting-rt

/**
 * Gets the active average
 *
 * @return average active
 *
 * @see com.jamonapi.Monitor#getAvgActive()
 */
public double getAvgActive() {
  return monitor.getAvgActive();
}

代码示例来源:origin: org.patterntesting/patterntesting-rt

/**
 * Gets the active average.
 *
 * @return average active
 * @see com.jamonapi.Monitor#getAvgActive()
 */
@Override
public double getAvgActive() {
  return monitor.getAvgActive();
}

代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi

/** This returns a weighted average */
public double getAvgActive() {
 double weightedActive=0;
 double totalHits=0;
  for (int i=0;i<numRows;i++) {
  double hits=monitors[i].getHits(); 
  weightedActive=hits*monitors[i].getAvgActive();
  totalHits+=hits;
 }
  
 if (totalHits==0)
  return 0;
 else
  return weightedActive/totalHits;

}

代码示例来源:origin: stevensouza/jamonapi

/** This returns a weighted average */
@Override
public double getAvgActive() {
  double weightedActive=0;
  double totalHits=0;
  for (int i=0;i<numRows;i++) {
    double hits=monitors[i].getHits();
    weightedActive=hits*monitors[i].getAvgActive();
    totalHits+=hits;
  }
  if (totalHits==0)
    return 0;
  else
    return weightedActive/totalHits;
}

代码示例来源:origin: stevensouza/jamonapi

b.append(getActive());
b.append(", Avg Active=");
b.append(getAvgActive());
b.append(", Max Active=");
b.append(getMaxActive());

代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi

b.append(getActive());
b.append(", Avg Active=");
b.append(getAvgActive());
b.append(", Max Active=");
b.append(getMaxActive());

代码示例来源:origin: stevensouza/jamonapi

return getFirstAccess();
else if (AVGACTIVE.equalsIgnoreCase(key))
  return new Double(getAvgActive());
else if (MAXACTIVE.equalsIgnoreCase(key))
  return new Double(getMaxActive());

代码示例来源:origin: net.sf.patterntesting/patterntesting-rt

/**
 * @see patterntesting.runtime.monitor.ProfileMonitor#toCsvString()
 */
public String toCsvString() {
  return monitor.getLabel() + "; " + monitor.getUnits() + "; "
      + monitor.getLastValue() + "; " + (long) monitor.getHits()
      + "; " + monitor.getAvg() + "; " + monitor.getTotal() + "; "
      + monitor.getMin() + "; " + monitor.getMax() + "; "
      + monitor.getActive() + "; " + monitor.getAvgActive() + "; "
      + monitor.getMaxActive() + "; " + monitor.getFirstAccess()
      + "; " + monitor.getLastAccess() + ";";
}

代码示例来源:origin: org.patterntesting/patterntesting-rt

/**
 * To csv string.
 *
 * @return the string
 * @see patterntesting.runtime.monitor.ProfileMonitor#toCsvString()
 */
@Override
public String toCsvString() {
  return '"' + monitor.getLabel() + "\"; " + monitor.getUnits() + "; " + monitor.getLastValue() + "; "
      + (long) monitor.getHits() + "; " + monitor.getAvg() + "; " + monitor.getTotal() + "; "
      + monitor.getMin() + "; " + monitor.getMax() + "; " + monitor.getActive() + "; "
      + monitor.getAvgActive() + "; " + monitor.getMaxActive() + "; " + monitor.getFirstAccess() + "; "
      + monitor.getLastAccess() + ";";
}

代码示例来源:origin: stevensouza/jamonapi

public MonitorDelta(Monitor mon) {
  label = mon.getLabel();
  units = mon.getUnits();
  hits = mon.getHits();
  total = mon.getTotal();
  avg = mon.getAvg();
  min = mon.getMin();
  max = mon.getMax();
  stdDev = mon.getStdDev();
  firstAccess = mon.getFirstAccess();
  lastAccess = mon.getLastAccess();
  lastValue = mon.getLastValue();
  active = mon.getActive();
  maxActive = mon.getMaxActive();
  avgActive = mon.getAvgActive();
}

相关文章