Date startTime = new Date(statistic.getStartTime()); mbeanStat.add(new String[] { "Start Time", startTime.toString() }); Date lastSampleTime = new Date(statistic.getLastSampleTime()); mbeanStat.add(new String[] { "Last Sample Time", lastSampleTime.toString() });
processAttrValue(snapshot, mbAttrInfo, propName.append("LastSampleTime"), stat.getLastSampleTime()); processAttrValue(snapshot, mbAttrInfo, propName.append("StartTime"), stat.getStartTime()); processAttrValue(snapshot, mbAttrInfo, propName.append("Unit"), stat.getUnit());