azkaban.utils.Props.getDouble()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中azkaban.utils.Props.getDouble()方法的一些代码示例,展示了Props.getDouble()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Props.getDouble()方法的具体详情如下:
包路径:azkaban.utils.Props
类名称:Props
方法名:getDouble

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);
}

相关文章