()
| 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. |
no test coverage detected