public class ProcNetReader extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConcurrentHashMap<String,Number> |
statData |
| 构造器和说明 |
|---|
ProcNetReader(ExtraMetricsProperties extraMetricsProperties) |
protected ConcurrentHashMap<String,Number> statData
public ProcNetReader(ExtraMetricsProperties extraMetricsProperties)
public void updateProcNetData()
public static <NumberClass extends Number> NumberClass parseStringNumber(String toParse, NumberClass defaultVal)
A compact and exception free number parser.
If the string can be parsed as the specified type, it return the default value
toParse - The string to parsedefaultVal - A default value to use it the string can't be parsedCopyright © 2018. All rights reserved.