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

Method loadConfig

src/tools/OpenTSDBMain.java:225–232  ·  view source on GitHub ↗

Loads properties from a file or url with the passed name @param name The name of the file or URL @return the loaded properties

(String name)

Source from the content-addressed store, hash-verified

223 * @return the loaded properties
224 */
225 protected static Properties loadConfig(String name) {
226 try {
227 URL url = new URL(name);
228 return loadConfig(url);
229 } catch (Exception ex) {
230 return loadConfig(new File(name));
231 }
232 }
233
234 /**
235 * Loads properties from the passed input stream

Callers 1

loadConfigSourceMethod · 0.95

Calls 2

closeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected