MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / processConfigValue

Method processConfigValue

src/tools/ConfigArgP.java:446–449  ·  view source on GitHub ↗

Performs sys-prop and js evals on the passed value @param text The value to process @return the processed value

(CharSequence text)

Source from the content-addressed store, hash-verified

444 * @return the processed value
445 */
446 public static String processConfigValue(CharSequence text) {
447 final String pv = evaluate(tokenReplaceSysProps(text));
448 return (pv==null || pv.trim().isEmpty()) ? null : pv;
449 }
450
451 /**
452 * Replaces all matched tokens with the matching system property value or a configured default

Callers 5

testAllDefaultsMethod · 0.95
contentToPropsMethod · 0.95
ConfigArgPMethod · 0.95
loadConfigSourceMethod · 0.95
applyArgsMethod · 0.95

Calls 3

evaluateMethod · 0.95
tokenReplaceSysPropsMethod · 0.95
isEmptyMethod · 0.80

Tested by 2

testAllDefaultsMethod · 0.76
contentToPropsMethod · 0.76