/** * Gets the first access. * * @return first access * * @see com.jamonapi.Monitor#getFirstAccess() */ public Date getFirstAccess() { return monitor.getFirstAccess(); }
/** * Gets the first access. * * @return first access * * @see com.jamonapi.Monitor#getFirstAccess() */ @Override public Date getFirstAccess() { return monitor.getFirstAccess(); }
public Date getFirstAccess() { Date firstAccess=null; for (int i=0;i<numRows;i++) { Date thisDate=monitors[i].getFirstAccess(); if (firstAccess==null || thisDate.compareTo(firstAccess)<0) // thisDate<firstDate firstAccess=thisDate; } return firstAccess; }
@Override public Date getFirstAccess() { Date firstAccess=null; for (int i=0;i<numRows;i++) { Date thisDate=monitors[i].getFirstAccess(); if (firstAccess==null || thisDate.compareTo(firstAccess)<0) // thisDate<firstDate firstAccess=thisDate; } return firstAccess; }
b.append(getMaxActive()); b.append(", First Access="); b.append(getFirstAccess()); b.append(", Last Access="); b.append(getLastAccess());
b.append(getMaxActive()); b.append(", First Access="); b.append(getFirstAccess()); b.append(", Last Access="); b.append(getLastAccess());
return getLastAccess(); else if (FIRSTACCESS.equalsIgnoreCase(key)) return getFirstAccess(); else if (AVGACTIVE.equalsIgnoreCase(key)) return new Double(getAvgActive());
/** * @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(); }