@Override public double getActive() { double value=0; for (int i=0;i<numRows;i++) { value+=monitors[i].getActive(); } return value; }
/** * Gets the active. * * @return active * * @see com.jamonapi.Monitor#getActive() */ @Override public double getActive() { return monitor.getActive(); }
public double getActive() { double value=0; for (int i=0;i<numRows;i++) { value+=monitors[i].getActive(); } return value; }
/** * Gets the active. * * @return active * * @see com.jamonapi.Monitor#getActive() */ public double getActive() { return monitor.getActive(); }
/** Pass in list and add monitor data to the end of it */ public Object[] getData(List dataList, Monitor mon) { dataList.add(new Double(mon.getLastValue())); dataList.add(new Double(mon.getActive())); dataList.add(mon.getLastAccess()); return dataList.toArray(); }
/** Return an array with spaces for the values in header and values populated for monitor data - last value, active and last access */ public Object[] getData(Monitor mon) { Object[] retData=new Object[header.length];// all but the 2 values will be null and will be replaced by caller. retData[lastValueIndex]=new Double(mon.getLastValue()); retData[activeIndex]=new Double(mon.getActive()); retData[dateIndex]=mon.getLastAccess(); return retData; }
b.append(getMax()); b.append(", Active="); b.append(getActive()); b.append(", Avg Active="); b.append(getAvgActive());
b.append(getMax()); b.append(", Active="); b.append(getActive()); b.append(", Avg Active="); b.append(getAvgActive());
return new Double(getTotal()); else if (ACTIVE.equalsIgnoreCase(key)) return new Double(getActive()); else if (STDDEV.equalsIgnoreCase(key)) return new Double(getStdDev());
@Override public void put(String instanceKey) { Monitor mon = MonitorFactory.getTimeMonitor(getJamonLabel(".put()")); // only allow 1 process to put at the sametime. if (mon.getActive() < 1) { mon.start(); try { if (instanceKey!=null) { jamonDataPersister.put(instanceKey); } } catch(Throwable t) { MonitorFactory.addException(mon, t); } finally { mon.stop(); } } }
/** * @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() + ";"; }
/** * 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() + ";"; }
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(); }