本文整理了Java中com.jamonapi.Monitor.getRange()
方法的一些代码示例,展示了Monitor.getRange()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.getRange()
方法的具体详情如下:
包路径:com.jamonapi.Monitor
类名称:Monitor
方法名:getRange
暂无
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* Gets the range.
*
* @return range
*
* @see com.jamonapi.Monitor#getRange()
*/
public Range getRange() {
return monitor.getRange();
}
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* Gets the range.
*
* @return range
*
* @see com.jamonapi.Monitor#getRange()
*/
public Range getRange() {
return monitor.getRange();
}
代码示例来源:origin: stevensouza/jamonapi
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();
}
代码示例来源:origin: org.wicketstuff/wicketstuff-jamon
/**
* 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())));
}
}
内容来源于网络,如有侵权,请联系作者删除!