/** * Gets the range. * * @return range * * @see com.jamonapi.Monitor#getRange() */ public Range getRange() { return monitor.getRange(); }
/** * Gets the range. * * @return range * * @see com.jamonapi.Monitor#getRange() */ public Range getRange() { return monitor.getRange(); }
private long getRangeCount(int i) { Monitor mon = JmxUtils.getMonitor(jmxProperties); if (mon==null) { return 0; } Range range = mon.getRange(); if (range==null) { return 0; } FrequencyDist[] dists = range.getFrequencyDists(); if (dists==null) { return 0; } return (long) dists[i].getHits(); }
/** * Construct. * * @param id * The id. * @param monitorLabel * The label of the {@link Monitor} to show the details of. */ public JamonMonitorDetailsPanel(String id, String monitorLabel) { super(id); setOutputMarkupId(true); final Monitor monitor = getApplication().getMetaData(MonitoringRepositoryKey.KEY) .findMonitorByLabel(monitorLabel); FrequencyDist[] frequencyDists = monitor.getRange().getFrequencyDists(); add(new FrequencyListView(ID_OF_LIST_VIEW, asList(frequencyDists))); add(new Label(ID_OF_TITLE, format("Detail of Monitor %s in %s", monitorLabel, monitor.getUnits()))); } }