本文整理了Java中azkaban.utils.Props.getDouble()
方法的一些代码示例,展示了Props.getDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Props.getDouble()
方法的具体详情如下:
包路径:azkaban.utils.Props
类名称:Props
方法名:getDouble
[英]Returns the double representation of the value. If the value is null, then a UndefinedPropertyException will be thrown. If the value isn't a double, then a parse exception will be thrown.
[中]返回值的双精度表示形式。如果该值为null,则会引发UndefinedPropertyException。如果该值不是double,则会引发解析异常。
代码示例来源:origin: azkaban/azkaban
/**
* @param azkProps Azkaban Properties
*/
public InMemoryMetricEmitter(final Props azkProps) {
this.historyListMapping = new ConcurrentHashMap<>();
this.timeWindow = azkProps.getLong(INMEMORY_METRIC_REPORTER_WINDOW, 60 * 60 * 24 * 7 * 1000);
this.numInstances = azkProps.getLong(INMEMORY_METRIC_NUM_INSTANCES, 50);
this.standardDeviationFactor = azkProps.getDouble(INMEMORY_METRIC_STANDARDDEVIATION_FACTOR, 2);
}
代码示例来源:origin: com.linkedin.azkaban/azkaban-common
/**
* @param azkProps Azkaban Properties
*/
public InMemoryMetricEmitter(final Props azkProps) {
this.historyListMapping = new ConcurrentHashMap<>();
this.timeWindow = azkProps.getLong(INMEMORY_METRIC_REPORTER_WINDOW, 60 * 60 * 24 * 7 * 1000);
this.numInstances = azkProps.getLong(INMEMORY_METRIC_NUM_INSTANCES, 50);
this.standardDeviationFactor = azkProps.getDouble(INMEMORY_METRIC_STANDARDDEVIATION_FACTOR, 2);
}
内容来源于网络,如有侵权,请联系作者删除!