MCPcopy Create free account
hub / github.com/apache/storm / hostnameImpl

Method hostnameImpl

storm-client/src/jvm/org/apache/storm/utils/Utils.java:1800–1809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1798
1799 // Non-static impl methods exist for mocking purposes.
1800 protected String hostnameImpl() throws UnknownHostException {
1801 if (localConf == null) {
1802 return memoizedLocalHostname();
1803 }
1804 Object hostnameString = localConf.get(Config.STORM_LOCAL_HOSTNAME);
1805 if (hostnameString == null || hostnameString.equals("")) {
1806 return memoizedLocalHostname();
1807 }
1808 return (String) hostnameString;
1809 }
1810
1811 /**
1812 * Validates blob key.

Callers 1

hostnameMethod · 0.80

Calls 3

memoizedLocalHostnameMethod · 0.95
getMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected